Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

afwritemisc(3) [centos man page]

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)
Man Page

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with cleansing data

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)
Discussion started by: dsravan
2 Replies

2. Programming

Copying 1024 bytes data in 3-bytes chunk

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)
Discussion started by: royalibrahim
3 Replies

3. Shell Programming and Scripting

Delete chunk of text if contains certain strings

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)
Discussion started by: pioavi
3 Replies