BASS.NET API for the Un4seen BASS Audio Library

WMAcastSendData Method

BASS.NET API for the Un4seen BASS Audio Library
Sends sample data to the underlying WMA encoder.

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

public override int SendData(
	IntPtr buffer,
	int length
)

Parameters

buffer
Type: SystemIntPtr
The pointer to the buffer data.
length
Type: SystemInt32
The length of the buffer data.

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

IMPORTANT NOTE: This implementation always return length! As the underlying EncoderWMA automatically sends data to the encoder there is NO need to call this method at all! This because the EncoderWMA will already set up an automatic DSP system whichs feeds the encoder with sample data and already sends the data to the server automatically.

If you want to get notified about any errors when sending data to the encoder you might use the WMA_Notify property.

See Also

Reference