| 1 |
afReadMisc(3) |
| 2 |
============= |
| 3 |
|
| 4 |
NAME |
| 5 |
---- |
| 6 |
afReadMisc, afWriteMisc, afSeekMisc - access miscellaneous metadata in an audio file |
| 7 |
|
| 8 |
SYNOPSIS |
| 9 |
-------- |
| 10 |
#include <audiofile.h> |
| 11 |
|
| 12 |
int afReadMisc (AFfilehandle file, int miscid, void *buffer, int nbytes); |
| 13 |
|
| 14 |
int afWriteMisc (AFfilehandle file, int miscid, const void *buffer, int nbytes); |
| 15 |
|
| 16 |
int afSeekMisc (AFfilehandle file, int miscid, int offbytes); |
| 17 |
|
| 18 |
DESCRIPTION |
| 19 |
----------- |
| 20 |
`afReadMisc` reads up to 'nbytes' from the miscellaneous data chunk |
| 21 |
identified by 'miscid' in 'file'. |
| 22 |
|
| 23 |
`afWriteMisc` writes up to 'nbytes' to the miscellaneous data chunk |
| 24 |
identified by 'miscid' in 'file'. |
| 25 |
|
| 26 |
`afSeekMisc` changes the current offset within the miscellaneous data |
| 27 |
chunk identified by 'miscid' to the offset 'offbytes'. |
| 28 |
|
| 29 |
RETURN VALUE |
| 30 |
------------ |
| 31 |
`afReadMisc` returns the number of bytes read from the specified |
| 32 |
miscellaneous chunk into the buffer referred to by 'buffer'. |
| 33 |
|
| 34 |
`afWriteMisc` returns the number of bytes written to the specified |
| 35 |
miscellaneous chunk from the buffer referred to by 'buffer'. |
| 36 |
|
| 37 |
`afSeekMisc` returns the new location of the logical data pointer as |
| 38 |
measured as an offset in bytes from the beginning of the miscellaneous |
| 39 |
chunk's data area. |
| 40 |
|
| 41 |
ERRORS |
| 42 |
------ |
| 43 |
`afReadMisc`, `afWriteMisc`, and `afSeekMisc` can produce the following |
| 44 |
error codes: |
| 45 |
|
| 46 |
* `AF_BAD_READ` |
| 47 |
* `AF_BAD_WRITE` |
| 48 |
* `AF_BAD_MISCSEEK` |
| 49 |
* `AF_BAD_MISCID` |
| 50 |
* `AF_BAD_TRACKID` |
| 51 |
* `AF_BAD_FILEHANDLE` |
| 52 |
|
| 53 |
AUTHOR |
| 54 |
------ |
| 55 |
Michael Pruett <[email protected]> |