Audio board automatic volume

Status
Not open for further replies.

pd0lew

Well-known member
Dear people at this forum,

For my CW decoder I use a audio board sgtl5000, is it possible to have a automatic volume control. For weak signals the audio board is perfect but when stronger stations I must turn the audio back otherwise the audio board is overloaded and get errors.

I know I can use lineInLevel(line_in); but while decoding it is not very handy to turn up or down the value.
Better is a sort of automatic input volume control is there a solution?


// configure the shield for LINE INPUT, with no processing
sgtl5000.enable();
sgtl5000.inputSelect(AUDIO_INPUT_LINEIN);
sgtl5000.lineInLevel(line_in);
// configure the shield for LINE OUTPUT, with no processing
sgtl5000.muteHeadphone();
sgtl5000.unmuteLineout();
sgtl5000.autoVolumeEnable();
sgtl5000.surroundSoundDisable();
sgtl5000.enhanceBassDisable();
sgtl5000.eqSelect(FLAT_FREQUENCY);
sgtl5000.adcHighPassFilterDisable();

Best regards,
Johan
 
Status
Not open for further replies.
Back
Top