AFWRITEFRAMES(3)AFWRITEFRAMES(3)NAME
afWriteFrames - write sample frames to a track in an audio file
SYNOPSIS
#include <audiofile.h>
AFframecount afWriteFrames(AFfilehandle file, int track, const void *data,
AFframecount count);
DESCRIPTION
afWriteFrames attempts to write up to count frames of audio data from the buffer data to the audio file handle file.
PARAMETERS
file is a valid file handle returned by afOpenFile(3).
track is always AF_DEFAULT_TRACK for all currently supported file formats.
data is a buffer of sample frames to be written to the file.
count is the number of sample frames to be written.
RETURN VALUE
afWriteFrames returns the number of sample frames successfully written to file.
ERRORS
afWriteFrames can produce these errors:
AF_BAD_FILEHANDLE
the file handle was invalid
AF_BAD_TRACKID
the track is not AF_DEFAULT_TRACK
AF_BAD_WRITE
writing audio data to the file failed
AF_BAD_LSEEK
seeking within the file failed
SEE ALSO afReadFrames(3)AUTHOR
Michael Pruett <michael@68k.org>
Audio File Library 0.3.6 03/06/2013 AFWRITEFRAMES(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)
Dear Friends,
I am sending you a sample data of a file. Here I want to extract all the data after date 3/1/2007 and before the date 4/1/2007.So this is the sample data plz write some code and send me.
22:06:35 (SCHROD) IN: "JAGUAR_MAIN" rakesh@squid (2 licenses)
10:15:08 (lmgrd)... (3 Replies)
hi experts,
i have some problem with count data which separate by comma, below sample data :
01,011222823b6d,011222823f29,0028a5,002993,6212345678,
659111111111,6598204507,6281105008,6596197849,_,525016160836958,_,
ffffffff,000000000000000000000000,_,_,_,fd,fd,ff,00,1,0028a5-002993,_,... (10 Replies)
Hi,
Need help for a script that count no of deployments from the below Sample Input file.
Below is my sample input file. Not sure whether it works or not.
Note: (We can use a seperator if needed)
My output should come like for each Store:
Output should look like:
Store_MS1: 4 Deployments... (6 Replies)
I have a flat file in UNIX and I have to perform two tasks based on the below data. The data I have printed here is just sample the original data is too long.
The position 110 to 111 (two digit value I have bolded the values) theygives the record type detail in the sample above the record types... (7 Replies)