BASS.NET API for the Un4seen BASS Audio LibraryBASSBuffer Constructor (Single, Int32, Int32, Int32)BASS.NET API for the Un4seen BASS Audio Library
Creates an instance of the ring buffer with a size acconding to the given parameters.

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

public BASSBuffer(
	float seconds,
	int samplerate,
	int chans,
	int bps
)

Parameters

seconds
Type: SystemSingle
The length of the buffer in seconds (e.g. 2.0 for 2 seconds or 0.2 for 200ms).
samplerate
Type: SystemInt32
The samplerate in Hz to use.
chans
Type: SystemInt32
The number of channels to use.
bps
Type: SystemInt32
Bytes per Sample (1 = 8-bit, 2 = 16-bit or 4 = 32-bit sample data, but you might also use 8, 16 or 32 here directly).
Remarks

The internal buffer size is calculated accordingly to the above parameters, rounded to the next sample mathich the given bytes per sample.

The buffer size is calculated as: seconds * samplerate * chans * bps

See Also

Reference