BASS.NET API for the Un4seen BASS Audio LibraryBASSBuffer MembersBASS.NET API for the Un4seen BASS Audio Library

The BASSBuffer type exposes the following members.
Constructors

  NameDescription
Public methodBASSBuffer 
Default Constructor using the default buffer size.
Public methodBASSBuffer(Single, Int32, Int32, Int32)
Creates an instance of the ring buffer with a size acconding to the given parameters.
Back to Top
Methods

  NameDescription
Public methodClear
Clears the ring buffer (zeros all elements) and resets all read and write pointers.
Public methodCount
Returns the number of bytes available in the ring buffer for reading.
Public methodDispose
Implement IDisposable.
Protected methodFinalize
Finalization code.
(Overrides OnlineObject Finalize .)
Public methodRead( Byte , Int32, Int32)
Reads (removes) the given number of sample data from the ring buffer.
Public methodRead(IntPtr, Int32, Int32)
Reads (removes) the given number of sample data from the ring buffer.
Public methodResize
Resizes (enlarges) the ring buffer by the given factor.
Public methodSpace
Returns the number of bytes available in the ring buffer for writing until an overflow of the read pointer will happen.
Public methodWrite( Byte , Int32)
Writes (add) the given number of sample data to the ring buffer.
Public methodWrite(IntPtr, Int32)
Writes (add) the given number of sample data to the ring buffer.
Back to Top
Properties

  NameDescription
Public propertyBps
Gets the Bytes per sample used with the ring buffer (1=8-bit, 2=16-bit default, 4=32-bit).
Public propertyBufferLength
Gets the total length in bytes of the ring buffer.
Public propertyNumChans
Gets the number of channels used with the ring buffer (1=mono, 2=stereo default, etc).
Public propertyReaders
Gets or Sets the number of parallel Readers which can be used with the ring buffer.
Public propertySampleRate
Gets the sample rate in Hz used with the ring buffer (default is 44100 Hz).
Back to Top
See Also