Sets the recording device to use for subsequent calls in the current thread.
BOOL BASS_RecordSetDevice( DWORD device );
|device||The device to use... 0 = first.|
|BASS_ERROR_DEVICE||device is invalid.|
|BASS_ERROR_INIT||The device has not been initialized.|
The functions that use the recording device selection are the following: BASS_RecordFree, BASS_RecordGetInfo, BASS_RecordGetInput, BASS_RecordGetInputName, BASS_RecordSetInput, BASS_RecordStart.
When one of the above functions (or BASS_RecordGetDevice) is called, BASS will check the current thread's recording device setting, and if no device is selected (or the selected device is not initialized), BASS will automatically select the lowest device that is initialized. This means that when using a single device, there is no need to use this function; BASS will automatically use the device that's initialized. Even if you free the device, and initialize another, BASS will automatically switch to the one that is initialized.
BASS_RecordSetDevice(2); // select device 2 record=BASS_RecordStart(44100, 2, 0, &MyRecordProc, 0); // start recording