BASS.NET API for the Un4seen BASS Audio Library

BASSBufferRead Method (IntPtr, 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.17.5
Syntax

public int Read(
	IntPtr buffer,
	int length,
	int reader
)

Parameters

buffer
Type: SystemIntPtr
The pointer to the buffer where the read sample data should be written to (e.g. as provided by a STREAMPROC).
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 be be less than requested).
See Also

Reference