Assembly: Bass.Net (in Bass.Net.dll) Version: 188.8.131.52
public int Space( int reader )
Public Function Space ( reader As Integer ) As Integer
public: int Space( int reader )
member Space : reader : int -> int
- 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 ValueType: Int32
Returns 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).
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.