BASS_RECORDINFO structure
Used with BASS_RecordGetInfo to retrieve information on the current recording device.
typedef struct {
DWORD flags;
DWORD formats;
DWORD inputs;
BOOL singlein;
DWORD freq;
} BASS_RECORDINFO;
Members
flags | The device's capabilities... a combination of these flags.
DSCCAPS_EMULDRIVER | The device's drivers do NOT have DirectSound recording support, so it is being emulated.
| DSCCAPS_CERTIFIED | The device driver has been certified by Microsoft.
|
|
formats | The standard formats supported by the device... a combination of these flags.
WAVE_FORMAT_1M08 | 11025 Hz, Mono, 8-bit
| WAVE_FORMAT_1S08 | 11025 Hz, Stereo, 8-bit
| WAVE_FORMAT_1M16 | 11025 Hz, Mono, 16-bit
| WAVE_FORMAT_1S16 | 11025 Hz, Stereo, 16-bit
| WAVE_FORMAT_2M08 | 22050 Hz, Mono, 8-bit
| WAVE_FORMAT_2S08 | 22050 Hz, Stereo, 8-bit
| WAVE_FORMAT_2M16 | 22050 Hz, Mono, 16-bit
| WAVE_FORMAT_2S16 | 22050 Hz, Stereo, 16-bit
| WAVE_FORMAT_4M08 | 44100 Hz, Mono, 8-bit
| WAVE_FORMAT_4S08 | 44100 Hz, Stereo, 8-bit
| WAVE_FORMAT_4M16 | 44100 Hz, Mono, 16-bit
| WAVE_FORMAT_4S16 | 44100 Hz, Stereo, 16-bit
|
The number of channels supported by the device is in the high 8 bits.
|
inputs | The number of input sources available to the device.
|
singlein | TRUE = only one input may be active at a time.
|
freq | The device's current input sample rate. Recording at this rate will give the best quality and performance, as no resampling is required.
|
Platform-specific
The
flags member is only used on Windows. The
formats member is only used on Windows/OSX/iOS, and only for the device's channel count in the case of OSX and iOS. On Windows, it does not necessarily represent all of the formats supported by the device, just the "standard" ones.
freq is also only available on Windows/OSX/iOS, but not on Windows prior to Vista.
See also
BASS_RecordGetInfo