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

flagsThe device's DirectSound capabilities... a combination of these flags.
DSCCAPS_EMULDRIVERThe device's drivers do not have DirectSound recording support, so it is being emulated.
DSCCAPS_CERTIFIEDThe device driver has been certified by Microsoft.
formatsThe number of channels supported by the device is in the high 8 bits (shift right 24 bits to get it).
inputsThe number of input sources available to the device.
singleinTRUE = only one input may be active at a time.
freqThe 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