BASS_Encode_CastSetTitle

Sets the title of a cast stream.

BOOL BASS_Encode_CastSetTitle(
    HENCODE handle,
    char *title,
    char *url
);

Parameters

handleThe encoder handle.
titleThe title... NULL = no title.
urlURL to go with the title... NULL = no URL. This applies to Shoutcast only (not Shoutcast 2).

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_TIMEOUTThe server did not respond to the request within the timeout period, as set with the BASS_CONFIG_NET_TIMEOUT config option.
BASS_ERROR_UNKNOWNSome other mystery problem!

Remarks

The ISO-8859-1 (Latin-1) character set should be used with Shoutcast and non-Ogg Icecast servers, and UTF-8 with Shoutcast 2 and Ogg Icecast servers.

See also

BASS_Encode_CastInit, BASS_Encode_CastSendMeta, BASS_Encode_ServerInit