Adjusts the settings of a recording input source.
BOOL BASS_RecordSetInput( int input, DWORD flags, float volume );
input | The input to adjust the settings of... 0 = first, -1 = master. | ||||
flags | The new setting... a combination of these flags.
| ||||
volume | The volume level... 0 (silent) to 1 (max), less than 0 = leave current. |
BASS_ERROR_INIT | BASS_RecordInit has not been successfully called. |
BASS_ERROR_ILLPARAM | input or volume is invalid. |
BASS_ERROR_NOTAVAIL | The input does not have the necessary controls to apply the flags and/or volume. If attempting to set both at the same time, try separating them to determine which is unavailable. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
Changes made by this function are system-wide, ie. other software using the device will be affected by it. The BASS_ATTRIB_VOLDSP attribute can be used instead for volume control over individual recordings.
On macOS, only the currently enabled input may have its volume set (if it has a volume control).
BASS_RecordSetInput(0, BASS_INPUT_ON, 0.5);