sndfile2k
1.2.0
|
API for retrieving and setting string data within sound files. More...
Enumerations | |
enum | SF_STR_FIELD { SF_STR_TITLE = 0x01, SF_STR_COPYRIGHT = 0x02, SF_STR_SOFTWARE = 0x03, SF_STR_ARTIST = 0x04, SF_STR_COMMENT = 0x05, SF_STR_DATE = 0x06, SF_STR_ALBUM = 0x07, SF_STR_LICENSE = 0x08, SF_STR_TRACKNUMBER = 0x09, SF_STR_GENRE = 0x10 } |
Defines field type constants. More... | |
Functions | |
SNDFILE2K_EXPORT int | sf_set_string (SNDFILE *sndfile, int str_type, const char *str) |
Sets string field for given sound file. More... | |
SNDFILE2K_EXPORT const char * | sf_get_string (SNDFILE *sndfile, int str_type) |
Gets string field from given sound file. More... | |
API for retrieving and setting string data within sound files.
enum SF_STR_FIELD |
SNDFILE2K_EXPORT const char* sf_get_string | ( | SNDFILE * | sndfile, |
int | str_type | ||
) |
Gets string field from given sound file.
[in] | sndfile | Pointer to a sound file state |
[in] | str_type | Type of field to retrieve, one of SF_STR_FIELD values |
NULL
otherwise. SNDFILE2K_EXPORT int sf_set_string | ( | SNDFILE * | sndfile, |
int | str_type, | ||
const char * | str | ||
) |
Sets string field for given sound file.
[in] | sndfile | Pointer to a sound file state |
[in] | str_type | Type of field to set, one of SF_STR_FIELD values |
[in] | str | Pointer to a null-terminated string with data to set |