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.17.5
Syntax
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 buffer size is calculated as: seconds * samplerate * chans * bps
See Also