Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

afgettrackbytes(3) [centos man page]

AFGETFRAMECOUNT(3)														AFGETFRAMECOUNT(3)

NAME
afGetFrameCount, afGetTrackBytes, afGetDataOffset - get the total sample frame count, length of audio track in bytes, offset of the audio track for a track in an audio file SYNOPSIS
#include <audiofile.h> AFframecount afGetFrameCount (AFfilehandle file, int track); AFfileoffset afGetTrackBytes (AFfilehandle file, int track); AFfileoffset afGetDataOffset (AFfilehandle file, int track); PARAMETERS
file is an audio file handle created by a previous call to afOpenFile(3). track is an integer which specifies an audio track within file. All supported file formats contain exactly one audio track per file, so the constant AF_DEFAULT_TRACK should always be used. DESCRIPTION
afGetFrameCount returns the total number of sample frames contained within the specified track of the specified file. Each sample frame of audio consists of a fixed number of samples (equal to the number of audio channels in the track. For monaural data, a sample frame consists of one audio sample. For stereophonic data, a sample frame consists of a stereo pair. afGetTrackBytes returns the total number of bytes of raw audio data (i.e., prior to decompression or conversion) in the track. afGetDataOffset returns the offset in bytes of the start of the audio data contained within the specified track of the specified file. RETURN VALUE
afGetFrameCount returns the total number of sample frames in track. afGetTrackBytes returns the total number of bytes of audio data in track. afGetDataOffset returns the offset in bytes to the beginning of the audio data in track. Each of these routines returns -1 in case of error. AUTHOR
Michael Pruett <michael@68k.org> Audio File Library 0.3.6 03/06/2013 AFGETFRAMECOUNT(3)

Check Out this Related Man Page

AFGETFRAMECOUNT(3)														AFGETFRAMECOUNT(3)

NAME
afGetFrameCount, afGetTrackBytes, afGetDataOffset - get the total sample frame count, length of audio track in bytes, offset of the audio track for a track in an audio file SYNOPSIS
#include <audiofile.h> AFframecount afGetFrameCount (AFfilehandle file, int track); AFfileoffset afGetTrackBytes (AFfilehandle file, int track); AFfileoffset afGetDataOffset (AFfilehandle file, int track); PARAMETERS
file is an audio file handle created by a previous call to afOpenFile(3). track is an integer which specifies an audio track within file. All supported file formats contain exactly one audio track per file, so the constant AF_DEFAULT_TRACK should always be used. DESCRIPTION
afGetFrameCount returns the total number of sample frames contained within the specified track of the specified file. Each sample frame of audio consists of a fixed number of samples (equal to the number of audio channels in the track. For monaural data, a sample frame consists of one audio sample. For stereophonic data, a sample frame consists of a stereo pair. afGetTrackBytes returns the total number of bytes of raw audio data (i.e., prior to decompression or conversion) in the track. afGetDataOffset returns the offset in bytes of the start of the audio data contained within the specified track of the specified file. RETURN VALUE
afGetFrameCount returns the total number of sample frames in track. afGetTrackBytes returns the total number of bytes of audio data in track. afGetDataOffset returns the offset in bytes to the beginning of the audio data in track. Each of these routines returns -1 in case of error. AUTHOR
Michael Pruett <michael@68k.org> Audio File Library 0.3.6 03/06/2013 AFGETFRAMECOUNT(3)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

C Certification

I would like to become certified in C/C++ and UNIX. Can anyone assist by giving links or details of the best track I could take. (1 Reply)
Discussion started by: Lucky Luke
1 Replies

2. HP-UX

9-track dinosaur

We just went from HP-UX 10.20 to 11.00. All the bugs are out, except for a small detail...the old 9-track isn't working. We receive large amounts of data on reel-to-reel so I kinda need it fixed. In the meantime, I'm trying to see if they can send me a DAT tape instead. I'm pretty sure the drive... (8 Replies)
Discussion started by: ncmurf00
8 Replies

3. Post Here to Contact Site Administrators and Moderators

Question to Forum Administrators

How can i track all my previous, current posts at one single place. How to do that ? Thanks in Advance !!!! (1 Reply)
Discussion started by: dreams5617
1 Replies

4. Post Here to Contact Site Administrators and Moderators

Question to Forum Administrators ?

How can i track all my previous, current posts at one single place. How to do that ? Thanks in Advance !!1 (2 Replies)
Discussion started by: dreams5617
2 Replies

5. UNIX for Advanced & Expert Users

Track changes in files

All, Is there any command or method by which we can track changes in a file in Unix (Something similar to track changes in a word document). I know there is CVS which is used to store code changes and track changes in the code. But other than CVS any way to find out changes done in a file... (1 Reply)
Discussion started by: rahulrathod
1 Replies

6. UNIX for Dummies Questions & Answers

Extracting audio samples from raw file

Is there any way for me to read a raw audio file and save the samples data to a text file for further use in waveform generation? (1 Reply)
Discussion started by: sarvagya
1 Replies

7. Solaris

realteak HD Audio Chipset

I am wondering if there is a way to get opensolaris to accept my realteck hd audio chip set. dmesg Thu Oct 23 22:47:38 EDT 2008 Oct 23 22:34:49 opensolaris Use is subject to license terms. Oct 23 22:34:49 opensolaris unix: features:... (1 Reply)
Discussion started by: FloridaBSD
1 Replies

8. Shell Programming and Scripting

track one file and copy to another server

Hello Friends, I am new to scripting, please guide me in below problem: I want to track a file, if anyone make any changes to that file then script should copy it to another server. my whole purpose is to backup a critical file automatically when any change is done to that specific... (1 Reply)
Discussion started by: makkar4u
1 Replies

9. Shell Programming and Scripting

To track any modification in a specfic file

Hi All, I am a pretty new to programming or scripting. Please help me in my below query. I want to write a script which can track a file for any kind of modification and if there is any modification then it should move that file or i should say backup that file to another server. Please... (6 Replies)
Discussion started by: makkar4u
6 Replies

10. Solaris

M4000 Memory Fault

Hi Guys and Gals, Does anyone know how to track down a faulty DIMM on the memory board of an M4000? showhardconf tells me which board it is, but was wondering if there was a way to track it down to a DIMM? Thanks in advance Martin (5 Replies)
Discussion started by: callmebob
5 Replies

11. AIX

How can i track the Communication between LPARs?

Hello Everyone, i got a question in AIX. How can i track the communication between LPARs. i mean how can we find if a program/account trying to access a directory/file inside AIX LPAR or from another LPAR ? if some one is trying to access our LPAR. where can i track those info? or a outside... (5 Replies)
Discussion started by: System Admin 77
5 Replies

12. Linux

Not able to track harddisk usage by root

Hi all ! I am unable to track 6 GB memory through df -h command please anyone tell me why its showing 57M though used memory is 101G OS - Ubuntu 12.04 LTS 32-Bit Filesystem Size Used Avail Use% Mounted on /dev/sda9 107G 101G 57M 100% / udev 1.9G 4.0K 1.9G ... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies

13. Programming

MYSQL - trigger to track changes to fields on update

So I have a php web application that allows updating of records. I would like to track the changes of only the fields that have changed. There are plenty of how to's that involve recreating the original row in a separate table with an additional time/date stamp column but I think this is a big... (1 Reply)
Discussion started by: barrydocks
1 Replies

14. UNIX for Dummies Questions & Answers

How to decrypt audio data from magnetic tapes?

Hi Everyone, Apologise if this is not the right section where to post the following: I have worked for some weeks on a system which records audio calls coming from various channels of a TDM network. The voice logger once the disk was full of audio data, backed it up on magnetic tapes... (2 Replies)
Discussion started by: NICEPeppino
2 Replies

15. OS X (Apple)

A simple variable frequency sinewave audio generator.

Hi all... Well I have not been inactive but working out how to make OSX 10.14.x command line audio player have a variable sample rate. This is a back door as afplay does not have a sample rate flag unlike aplay for ALSA, in Linux flavours. This is a DEMO only but a derivative of it will... (2 Replies)
Discussion started by: wisecracker
2 Replies