BASS.NET API for the Un4seen BASS Audio LibraryWaveFormWaveBuffer ClassBASS.NET API for the Un4seen BASS Audio Library
The internal class containing the rended wave buffer data (in frames).
Inheritance Hierarchy


Namespace: Un4seen.Bass.Misc
Assembly: Bass.Net (in Bass.Net.dll) Version:

public class WaveBuffer

The WaveFormWaveBuffer type exposes the following members.


Public propertybps
Returns the bytes per sample (16-bit samples will return 2, 32-bit samples will return 4 and 8-bit samples will return 1).

Public fieldbeats
List of optional beat positions within the WaveForm (or , if no beat positions have been detected).

Each Element reflects one beat position (long value, in bytes of the original rendering resolution).

Public fieldbpf
Bytes per frame (one frame is a window with the length defined in resolution).
Public fieldchans
Number of channels (1=mono, 2=stereo, ...).
Public fielddata
Data buffer containing the rendered peak levels of the right and left channel (one element represents the data of one frame).

The left and right values represent each the absolute signed maximum value of the left resp. right channel' sample data within the rendered frame (e.g. -10000 would be kept instead of +8000). If the channel is mono, then the left and right value of the data would contain the same value.

Structure of one WaveFormWaveBufferLevel element:

|       32-bit      |
|   left  |  right  |

Each level ranges linearly from -32768 to 0 (silent) to +32767.

Public fieldflags
Will keep the stream create flags (as an int), see BASSFlag.
Public fieldmarker
List of optional markers within the WaveForm (or , if no markers are defined).

Key (string) = Name of the marker, Value (long) = Position of the marker (in bytes of the rendering resolution).

Public fieldresolution
Frame resolution in milliseconds
See Also