Sends metadata to a Shoutcast 2 server.
Namespace: Un4seen.Bass.AddOn.Enc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
public static bool BASS_Encode_CastSendMeta( int handle, BASSEncodeMetaDataType type, byte[] buffer )
Parameters
- handle
- Type: SystemInt32
The encoder handle. - type
- Type: Un4seen.Bass.AddOn.EncBASSEncodeMetaDataType
The type of metadata (one of the BASSEncodeMetaDataType values). 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). - buffer
- Type: SystemByte
The metadata as an UTF-8 encoded byte array.
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
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.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_NOTAVAIL | There isn't a cast set on the encoder. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
See Also