BASS.NET API for the Un4seen BASS Audio LibrarySHOUTcastSendData Method BASS.NET API for the Un4seen BASS Audio Library
Sends encoded sample data to the SHOUTcast server (e.g. the data as received in an own ENCODEPROC).

Namespace: Un4seen.Bass.Misc
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public override int SendData(
	IntPtr buffer,
	int length
)

Parameters

buffer
Type: SystemIntPtr
The pointer to the encoded buffer data (as given by to ENCODEPROC callback).
length
Type: SystemInt32
The length of the buffer data (as given by to ENCODEPROC callback).

Return Value

Type: Int32
The number of bytes send to the server (or -1, if no bytes could be send (see LastError or LastErrorMessage for details).

Implements

IStreamingServerSendData(IntPtr, Int32)
Remarks

NOTE: Only possible, if UseBASS is set to .

If an error occures the connection will be closed automatically (using Disconnect).

See Also

Reference