Un4seen.BassBASS_INFO
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.18.0
[SerializableAttribute] [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Ansi)] public sealed class BASS_INFO
The BASS_INFO type exposes the following members.
| Name | Description | |
|---|---|---|
| BASS_INFO |
Default constructor.
|
| Name | Description | |
|---|---|---|
| IsCertified |
The device driver has been certified by Microsoft. Always true for WDM drivers.
| |
| Supports16BitSamples |
16-bit samples are supported by hardware mixing.
| |
| Supports8BitSamples |
8-bit samples are supported by hardware mixing.
| |
| SupportsContinuousRate |
The device supports all sample rates between minrate and maxrate.
| |
| SupportsDirectSound |
The device's drivers has DirectSound support
| |
| SupportsMonoSamples |
Mono samples are supported by hardware mixing.
| |
| SupportsStereoSamples |
Stereo samples are supported by hardware mixing.
|
| Name | Description | |
|---|---|---|
| ToString |
A description of the decive info object (speakers, rates, dx, eax).
(Overrides ObjectToString.) |
| Name | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| dsver |
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. | |||||||||||||||
| eax |
Reserved (not used anymore).
| |||||||||||||||
| flags |
The device's capabilities. A combination of these flags (BASSInfo):
| |||||||||||||||
| free3d |
Reserved (not used anymore).
| |||||||||||||||
| freesam |
Reserved (not used anymore).
| |||||||||||||||
| freq |
The device's current output sample rate. This is only available on Windows Vista and OSX.
| |||||||||||||||
| hwfree |
Reserved (not used anymore).
| |||||||||||||||
| hwsize |
Reserved (not used anymore).
| |||||||||||||||
| initflags |
The flags parameter of the BASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr) call (BASSInit).
| |||||||||||||||
| latency | 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, IntPtr) was called. | |||||||||||||||
| maxrate |
Reserved (not used anymore).
| |||||||||||||||
| minbuf | 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, IntPtr) was called. | |||||||||||||||
| minrate |
Reserved (not used anymore).
| |||||||||||||||
| speakers | 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, IntPtr) call to force the enabling of speaker assignment. |
Platform-specific
On Windows, it is possible for speakers to mistakenly be 2 with some devices/drivers when the device in fact supports more speakers. In that case, the BASS_DEVICE_CPSPEAKERS flag can be used (with BASS_Init) to use the Windows control panel setting, or the BASS_DEVICE_SPEAKERS flag can be used to force the enabling of speaker assignment to up to 8 speakers, even though the device may not really support that many speakers. The result of assigning channels to nonexistent speakers is undefined; they may be heard on other speakers or not heard at all.
The flags, hwsize, hwfree, freesam, free3d, minrate, maxrate, eax, and dsver members are only used on Windows, as DirectSound and hardware mixing are only available there. The freq member is not available on Windows prior to Vista.
On Windows, the availability of the latency and minbuf values depends on the BASS_DEVICE_LATENCY flag being used when BASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr) was called.