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 DirectSound 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 number of channels supported by the device is in the high 8 bits (shift right 24 bits to get it).
|
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 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, and only prior to Vista. The formats member is unused on Linux. freq is also unused on Linux, and on Windows prior to Vista. On Android, formats and freq are unavailable prior to Android 8.1.
Example
Display the device's sample format.
BASS_RECORDINFO info;
BASS_RecordGetInfo(&info);
printf("%d chan, %d hz\n", info.formats >> 24, info.freq);
See also
BASS_RecordGetInfo