level BASS_RecordStart

Started by Pedro Leonardo, 10 Mar '25 - 14:38

Pedro Leonardo

Hi,
How do I level the audio of BASS_RecordStart(11025, 1, BASS_SAMPLE_FLOAT, nil, nil); I want BASS_RecordStart to always maintain the same volume regardless of the input volume. Is this possible? I want to use DTMF Scanner Library from 3delite, but the input volume changes the detection sensitivity.

Regards

Ian @ un4seen

You could try using the BASS_FX add-on's BASS_FX_BFX_DAMP effect (on the recording channel) via BASS_ChannelSetFX for that, or perhaps the BASS_FX_BFX_COMPRESSOR2 or BASS_FX_DX8_COMPRESSOR effect. Note that the BASS_FX library needs to be loaded before you use effects from it - you can ensure it's loaded by calling a function from it, eg. BASS_FX_GetVersion during initialization.