Checks if a particular sample format is supported by a device.
DWORD BASS_WASAPI_CheckFormat( int device, DWORD freq, DWORD chans, DWORD flags );
device | The device to use... -1 = default output device, -2 = default input device, -3 = default loopback input device. BASS_WASAPI_GetDeviceInfo can be used to enumerate the available devices. | ||
freq | The sample rate. | ||
chans | The number of channels... 1 = mono, 2 = stereo, etc. | ||
flags | Any combination of these flags.
|
BASS_ERROR_WASAPI | WASAPI is not available. |
BASS_ERROR_DEVICE | device is invalid. |
BASS_ERROR_NOTAVAIL | Exclusive mode is unavailable on the device. |
BASS_ERROR_DRIVER | The driver could not be initialized. |
BASS_ERROR_FORMAT | The specified format is not supported by the device. |