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

The BASS_INFO type exposes the following members.

Fields

  NameDescription
Public fielddsver
DirectSound version.

9 = DX9/8/7/5 features are available, 8 = DX8/7/5 features are available, 7 = DX7/5 features are available, 5 = DX5 features are available. 0 = none of the DX9/8/7/5 features are available.

Public fieldeax
The device supports EAX and has it enabled?

The device's "Hardware acceleration" needs to be set to "Full" in it's "Advanced Properties" setup, else EAX is disabled.

This is always if BASS_DEVICE_3D was not used when BASS_Init(Int32, Int32, BASSInit, IntPtr) was called.

Public fieldflags
The device's capabilities. A combination of these flags (BASSInfo):
DSCAPS_CONTINUOUSRATEThe device supports all sample rates between minrate and maxrate.
DSCAPS_EMULDRIVERThe device's drivers do NOT have DirectSound support, so it is being emulated. Updated drivers should be installed.
DSCAPS_CERTIFIEDThe device driver has been certified by Microsoft. This flag is always set on WDM drivers.
DSCAPS_SECONDARYMONOMono samples are supported by hardware mixing.
DSCAPS_SECONDARYSTEREOStereo samples are supported by hardware mixing.
DSCAPS_SECONDARY8BIT8-bit samples are supported by hardware mixing.
DSCAPS_SECONDARY16BIT16-bit samples are supported by hardware mixing.
Public fieldfree3d
The number of free 3D sample slots in the hardware.
Public fieldfreesam
The number of free sample slots in the hardware.
Public fieldfreq
The device's current output sample rate. This is only available on Windows Vista and OSX.
Public fieldhwfree
The device's amount of free hardware memory.
Public fieldhwsize
The device's total amount of hardware memory.
Public fieldinitflags
The flags parameter of the BASS_Init(Int32, Int32, BASSInit, IntPtr) call (BASSInit).
Public fieldlatency
The delay (rounded up to the nearest millisecond) for playback of HSTREAM/HMUSIC channels to start and be heard.

Requires that BASS_DEVICE_LATENCY was used when BASS_Init(Int32, Int32, BASSInit, IntPtr) was called.

Public fieldmaxrate
The maximum sample rate supported by the hardware.
Public fieldminbuf
The minimum buffer length (rounded up to the nearest millisecond) recommended for use with the BASS_CONFIG_BUFFER config option (see BASS_GetConfig(BASSConfig) and BASS_SetConfig(BASSConfig, Int32)).

Requires that BASS_DEVICE_LATENCY was used when BASS_Init(Int32, Int32, BASSInit, IntPtr) was called.

Public fieldminrate
The minimum sample rate supported by the hardware.
Public fieldspeakers
The number of speakers the device/drivers supports... 2 means that there is no support for speaker assignment - this will always be the case with non-WDM drivers in Windows.

It's also possible that it could mistakenly be 2 with some devices/drivers, when the device in fact supports more speakers.

In that case the BASS_DEVICE_SPEAKERS or BASS_DEVICE_CPSPEAKERS flag can be used in the BASS_Init(Int32, Int32, BASSInit, IntPtr) call to force the enabling of speaker assignment.

Top
See Also

Reference