BASS_Encode_CastSendMeta


Sends metadata to a Shoutcast 2 server.

BOOL BASS_Encode_CastSendMeta(
    HENCODE handle,
    DWORD type,
    void *data,
    DWORD length
);

Parameters

handleThe encoder handle.
typeThe 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).
dataA pointer to the metadata.
lengthThe 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_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILThere isn't a cast set on the encoder.
BASS_ERROR_UNKNOWNSome 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