BASS.NET API for the Un4seen BASS Audio Library

BassEncBASS_Encode_CastSetTitle Method (Int32, String, String)

BASS.NET API for the Un4seen BASS Audio Library
Sets the title of a cast stream (ANSI only).

Namespace:  Un4seen.Bass.AddOn.Enc
Assembly:  Bass.Net (in Bass.Net.dll) Version:

public static bool BASS_Encode_CastSetTitle(
	int handle,
	string title,
	string url


Type: SystemInt32
The encoder handle.
Type: SystemString
The title to set.
Type: SystemString
URL to go with the title... = no URL. This applies to Shoutcast only (not Shoutcast 2).

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.

This overload always uses an ANSI character string to update the title/url.

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.

ERROR CODEDescription
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!

See Also