Sets the title of a cast stream.
Namespace: Un4seen.Bass.AddOn.Enc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("bassenc")] public static bool BASS_Encode_CastSetTitle( int handle, byte[] title, byte[] url )
Parameters
- handle
- Type: SystemInt32
The encoder handle. - title
- Type: SystemByte
The encoded byte array containing the title to set. - url
- Type: SystemByte
The encoded byte array containing the URL to go with the title... = no URL. This applies to Shoutcast only (not Shoutcast 2).
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
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.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_NOTAVAIL | There isn't a cast set on the encoder. |
BASS_ERROR_TIMEOUT | The server did not respond to the request within the timeout period, as set with the BASS_CONFIG_NET_TIMEOUT config option. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
Examples
Encoding utf8 = Encoding.UTF8; BassEnc.BASS_Encode_CastSetTitle(encoder, utf8.GetBytes(song+"\0"), null);
See Also