BASS.NET API for the Un4seen BASS Audio LibraryBASSBufferRead Method (Byte, Int32, Int32)BASS.NET API for the Un4seen BASS Audio Library
Reads (removes) the given number of sample data from the ring buffer.

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

public int Read(
	byte[] buffer,
	int length,
	int reader
)

Parameters

buffer
Type: SystemByte
The byte array where the read sample data should be written to (must be initialized and large enough to keep the data).
length
Type: SystemInt32
The number of BYTES to read from the ring buffer (which will be written to the buffer).
reader
Type: SystemInt32
The zero-based index of the reader to use (0=first reader).

Return Value

Type: Int32
The number of bytes actually read from the ring buffer (which might be less than requested).
See Also

Reference