BASS_Encode_CastSendMeta
Sends metadata to a Shoutcast 2 server.
BOOL BASS_Encode_CastSendMeta(
HENCODE handle,
DWORD type,
void *data,
DWORD length
);
Parameters
handle | The encoder handle.
|
type | The type of metadata. This is a Shoutcast 2 message class (in bits 12 to 15) and type (bits 0 to 11) that describes what the metadata is. For example, 0x4001 is class 4 and type 1 (which would indicate a station logo in PNG format).
|
data | A pointer to the metadata.
|
length | The length of the metadata in bytes.
|
Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not valid.
|
BASS_ERROR_NOTAVAIL | There isn't a cast set on the encoder.
|
BASS_ERROR_UNKNOWN | Some other mystery problem!
|
Remarks
Some information on the available metadata options can be found in the Shoutcast 2 specs: wiki.winamp.com/wiki/SHOUTcast_2_(Ultravox_2.1)_Protocol_Details.
See also
BASS_Encode_CastInit, BASS_Encode_CastSetTitle