BASS.NET API for the Un4seen BASS Audio Library

BassEncBASS_Encode_CastSetTitle Method (Int32, Byte, Byte)

BASS.NET API for the Un4seen BASS Audio Library
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: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

This overload allows you to pass an encoded byte array to update the title/url (e.g. when the server expects a specific codepage/character set).

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!

Examples

Sets a song title using UTF-8:
Encoding utf8 = Encoding.UTF8;
BassEnc.BASS_Encode_CastSetTitle(encoder, utf8.GetBytes(song+"\0"), null);
See Also

Reference