Returns the number of bytes available in the ring buffer for writing until an overflow of the read pointer will happen.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- reader
- Type: SystemInt32
The zero-based index of the reader to use (0=first reader) or -1 to get the smallest available space for all readers.
Return Value
Type: Int32Returns the number of bytes available in the ring buffer for writing until an overflow of the read pointer will happen (space between the current write pointer position and the read pointer position).
Remarks
Note, that there is never a real physical write limitation, since writing to the buffer always has priority. Meaning if there is not sufficient space left between the write pointer position and the last read pointer position, this fact is simply ignored. The data will be written anyhow. However, this will result in an overflow, so that the next read operation will only have the overflown sample data available - resulting in a gap in the sound.
See Also