Used with BASS_GetInfo to retrieve information on the current device.
typedef struct { DWORD flags; DWORD hwsize; DWORD hwfree; DWORD freesam; DWORD free3d; DWORD minrate; DWORD maxrate; BOOL eax; DWORD minbuf; DWORD dsver; DWORD latency; DWORD initflags; DWORD speakers; DWORD freq; } BASS_INFO;
flags | The device's capabilities... a combination of the following flags.
| ||||||||||||||
hwsize | The device's total amount of hardware memory. | ||||||||||||||
hwfree | The device's amount of free hardware memory. | ||||||||||||||
freesam | The number of free sample slots in the hardware. | ||||||||||||||
free3d | The number of free 3D sample slots in the hardware. | ||||||||||||||
minrate | The minimum sample rate supported by the hardware. | ||||||||||||||
maxrate | The maximum sample rate supported by the hardware. | ||||||||||||||
eax | The device supports EAX and has it enabled? The device's "Hardware acceleration" needs to be set to "Full" in its "Advanced Properties" setup, else EAX is disabled. This is always FALSE if BASS_DEVICE_3D was not specified when BASS_Init was called. | ||||||||||||||
minbuf | The minimum buffer length (rounded up to the nearest millisecond) recommended for use (with the BASS_CONFIG_BUFFER config option). | ||||||||||||||
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. | ||||||||||||||
latency | The average delay (rounded up to the nearest millisecond) for channel playback to start and be heard. | ||||||||||||||
initflags | The flags parameter of the BASS_Init call. | ||||||||||||||
speakers | The number of available speakers, which can be accessed via the speaker assignment flags. | ||||||||||||||
freq | The device's current output sample rate. |
The device's sample rate is only available on Windows/OSX/iOS. On other platforms, the freq member is BASS's output rate (set by BASS_Init) which may not necessarily be the same as the device's output rate due to resampling by the OS. The freq member is not available on Windows prior to Vista.
The flags, hwsize, hwfree, freesam, free3d, minrate, maxrate, eax, and dsver members are only used on Windows with DirectSound output.
When using DirectSound output on Windows, the availability of the latency and minbuf values depends on the BASS_DEVICE_LATENCY flag being used when BASS_Init was called.