BASS.NET API for the Un4seen BASS Audio LibraryWaveBuffer FieldsBASS.NET API for the Un4seen BASS Audio Library

The WaveFormWaveBuffer type exposes the following members.

Fields

  NameDescription
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
Top
See Also

Reference