BASS.NET API for the Un4seen BASS Audio LibraryBASSBufferCount Method BASS.NET API for the Un4seen BASS Audio Library
Returns the number of bytes available in the ring buffer for reading.

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

public int Count(
	int reader
)

Parameters

reader
Type: SystemInt32
The zero-based index of the reader to use (0=first reader) or -1 to get the biggest number of bytes for all readers.

Return Value

Type: Int32
The number of bytes available in the ring buffer for reading (between the current read pointer position and the write pointer position).
Remarks

In order to convert the bytes in the buffer to number of samples, simply devide the result by the bytes per sample (e.g. if the result is 56780 and you are using the buffer with 16-bit stereo sample data, the number of sample are 56780/2 = 28390 samples or 14195 stereo pairs).
See Also

Reference