AFREADMISC(3)AFREADMISC(3)NAME
afReadMisc, afWriteMisc, afSeekMisc - access miscellaneous metadata in an audio file
SYNOPSIS
#include <audiofile.h>
int afReadMisc (AFfilehandle file, int miscid, void *buffer, int nbytes);
int afWriteMisc (AFfilehandle file, int miscid, const void *buffer, int nbytes);
int afSeekMisc (AFfilehandle file, int miscid, int offbytes);
DESCRIPTION
afReadMisc reads up to nbytes from the miscellaneous data chunk identified by miscid in file.
afWriteMisc writes up to nbytes to the miscellaneous data chunk identified by miscid in file.
afSeekMisc changes the current offset within the miscellaneous data chunk identified by miscid to the offset offbytes.
RETURN VALUE
afReadMisc returns the number of bytes read from the specified miscellaneous chunk into the buffer referred to by buffer.
afWriteMisc returns the number of bytes written to the specified miscellaneous chunk from the buffer referred to by buffer.
afSeekMisc returns the new location of the logical data pointer as measured as an offset in bytes from the beginning of the miscellaneous
chunk's data area.
ERRORS
afReadMisc, afWriteMisc, and afSeekMisc can produce the following error codes:
o AF_BAD_READ
o AF_BAD_WRITE
o AF_BAD_MISCSEEK
o AF_BAD_MISCID
o AF_BAD_TRACKID
o AF_BAD_FILEHANDLE
AUTHOR
Michael Pruett <michael@68k.org>
Audio File Library 0.3.6 03/06/2013 AFREADMISC(3)
Check Out this Related Man Page
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)
Hello all,
I am trying to add chunks to my informix dataspace. I have one dataspace ( the rootdbs ) and the new chunk is a raw device. Precisely slice1 on my new external harddisk.
The question is, what should be the offset value. The document says, the offset is used by the engine to... (1 Reply)
I have a file with 27 fields seperated by pipe. I have a field 17 that is defined as numeric and the data coming in might contain character and
other miscellaneous data like (@,!,~,#,%,^,&,*,(,)).
I have to make sure that the column strictly contains numeric data and if it contains any of the... (2 Replies)
Hi,
If I want to copy a 1024 byte data stream in to the target location in 3-bytes chunk, I guess I can use the following script.
dd bs=1024 count=3 if=/src of=/dest
But, I would like to know, how to do it via a C program. I have tried this with memcpy(), that did not help. (3 Replies)
Using awk how to delete chunk of text if it contains certain strings? As in the following, delete a reference chunk, i.e. everything from <reference attribute = "value"> to </reference> inclusive, if within it "Group ID" value is 7 or 96 or 103 or 1005.
<reference attribute = "value">
... (3 Replies)
Hi All,
I am having a problem. I tried to extract the chunk of data and tried to fix I am not able to. Any help please
Basically I need to remove the for , values after K,
this is how it is now
A,,
B,
C,C,
D,D,
12/04/10,12/04/10,
K,1,1,1,1,0,3.0,
K,1,1,1,2,0,4.0,... (2 Replies)