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
AFframecount afGetFrameCount (AFfilehandle file, int track);
AFfileoffset afGetTrackBytes (AFfilehandle file, int track);
AFfileoffset afGetDataOffset (AFfilehandle file, int track);
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.
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.
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.
Michael Pruett <email@example.com>
Audio File Library 0.3.6 03/06/2013 AFGETFRAMECOUNT(3)
Check Out this Related Man Page
afSeekFrame, afTellFrame - update or access the current sample frame position for a track in an audio file
AFframecount afSeekFrame(AFfilehandle file, int track,
AFframecount afTellFrame(AFfilehandle file, int track);
file is a valid audio file handle created by afOpenFile(3).
track identifies an audio track within the file. track is always AF_DEFAULT_TRACK for all currently supported audio file formats.
frameOffset is a sample frame offset. Valid sample frame offsets must be greater than or equal to zero and strictly less than the number of
sample frames contained within the specified audio track. The special value -1 is also allowed.
afSeekFrame moves the logical file position for a specified audio track to a desired sample frame location. If frameOffset is -1,
afSeekFrame will not modify the current file offset and will instead return the current file position.
afTellFrame returns current file position in sample frames.
On success, afSeekFrame and afTellFrame will return the current file position as measured in sample frames from the start of the audio
track. On failure, afSeekFrame and afTellFrame will return the value -1.
The following errors can be generated by afSeekFrame or afTellFrame:
file does not represent a valid file handle.
track does not identify a valid track.
A call to lseek failed.
Michael Pruett <firstname.lastname@example.org>
Audio File Library 0.3.6 03/06/2013 AFSEEKFRAME(3)
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
3. Post Here to Contact Site Administrators and Moderators
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)
Can anyone explain what is going on here:
michael-browns-powerbook-g4-15:~ msb65$ start=-1
michael-browns-powerbook-g4-15:~ msb65$ stop=1
michael-browns-powerbook-g4-15:~ msb65$ if ; then echo hello; fi
-bash: ; then echo hello; fi
Are you not allowed to compare negative... (6 Replies)
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)
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)
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)
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)
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)
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)
I have to write a C Code to read a word from file and Keep track of the number of word occurrence in each line and total in the file. Maintaining total count is easier but maintaining per line count is what I am struggling to achieve. I thought of maintaining linked list... (3 Replies)
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)