The BASSBuffer type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
BASSBuffer |
Default Constructor using the default buffer size.
| |
BASSBuffer(Single, Int32, Int32, Int32) |
Creates an instance of the ring buffer with a size acconding to the given parameters.
|
Methods
Name | Description | |
---|---|---|
Clear |
Clears the ring buffer (zeros all elements) and resets all read and write pointers.
| |
Count |
Returns the number of bytes available in the ring buffer for reading.
| |
Dispose |
Implement IDisposable.
| |
Finalize |
Finalization code.
(Overrides Object Finalize .) | |
Read( Byte , Int32, Int32) |
Reads (removes) the given number of sample data from the ring buffer.
| |
Read(IntPtr, Int32, Int32) |
Reads (removes) the given number of sample data from the ring buffer.
| |
Resize |
Resizes (enlarges) the ring buffer by the given factor.
| |
Space |
Returns the number of bytes available in the ring buffer for writing until an overflow of the read pointer will happen.
| |
Write( Byte , Int32) |
Writes (add) the given number of sample data to the ring buffer.
| |
Write(IntPtr, Int32) |
Writes (add) the given number of sample data to the ring buffer.
|
Properties
Name | Description | |
---|---|---|
Bps |
Gets the Bytes per sample used with the ring buffer (1=8-bit, 2=16-bit default, 4=32-bit).
| |
BufferLength |
Gets the total length in bytes of the ring buffer.
| |
NumChans |
Gets the number of channels used with the ring buffer (1=mono, 2=stereo default, etc).
| |
Readers |
Gets or Sets the number of parallel Readers which can be used with the ring buffer.
| |
SampleRate |
Gets the sample rate in Hz used with the ring buffer (default is 44100 Hz).
|
See Also