AudioDataStream.ReadData Method

Definition

Overloads

ReadData(Byte[])

Reads audio data from the current position in the audio data stream. Waits if no data is available.

ReadData(UInt32, Byte[])

Reads audio data from a specified position in the audio data stream. Waits if no data is available.

ReadData(Byte[])

Reads audio data from the current position in the audio data stream. Waits if no data is available.

public uint ReadData (byte[] buffer);
member this.ReadData : byte[] -> uint32
Public Function ReadData (buffer As Byte()) As UInteger

Parameters

buffer
Byte[]

The buffer to receive the audio data.

Returns

The number of bytes provided, or 0 when the stream ends and there is no more data available.

Remarks

The maximum number of bytes to be read is determined by the size of buffer.

Applies to

ReadData(UInt32, Byte[])

Reads audio data from a specified position in the audio data stream. Waits if no data is available.

public uint ReadData (uint pos, byte[] buffer);
member this.ReadData : uint32 * byte[] -> uint32
Public Function ReadData (pos As UInteger, buffer As Byte()) As UInteger

Parameters

pos
UInt32

The offset from the start from the of the stream where the request starts, in bytes.

buffer
Byte[]

The buffer to receive the audio data.

Returns

The number of bytes provided, or 0 when the stream ends and there is no more data available.

Remarks

The maximum number of bytes to be read is determined by the size of buffer.

Applies to