mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-14 08:01:46 -05:00
Fix broken lastGain property usage
This commit is contained in:
parent
29d411cead
commit
b155338b1d
@ -1189,6 +1189,7 @@ void AppFrame::OnIdle(wxIdleEvent& event) {
|
|||||||
if (demod != activeDemodulator) {
|
if (demod != activeDemodulator) {
|
||||||
demodSignalMeter->setInputValue(demod->getSquelchLevel());
|
demodSignalMeter->setInputValue(demod->getSquelchLevel());
|
||||||
demodGainMeter->setInputValue(demod->getGain());
|
demodGainMeter->setInputValue(demod->getGain());
|
||||||
|
wxGetApp().getDemodMgr().setLastGain(demod->getGain());
|
||||||
int outputDevice = demod->getOutputDevice();
|
int outputDevice = demod->getOutputDevice();
|
||||||
scopeCanvas->setDeviceName(outputDevices[outputDevice].name);
|
scopeCanvas->setDeviceName(outputDevices[outputDevice].name);
|
||||||
outputDeviceMenuItems[outputDevice]->Check(true);
|
outputDeviceMenuItems[outputDevice]->Check(true);
|
||||||
@ -1848,6 +1849,7 @@ int AppFrame::OnGlobalKeyDown(wxKeyEvent &event) {
|
|||||||
wxGetApp().getDemodMgr().setActiveDemodulator(nullptr);
|
wxGetApp().getDemodMgr().setActiveDemodulator(nullptr);
|
||||||
wxGetApp().getDemodMgr().setActiveDemodulator(demod, false);
|
wxGetApp().getDemodMgr().setActiveDemodulator(demod, false);
|
||||||
}
|
}
|
||||||
|
return 1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -359,7 +359,6 @@ int DemodulatorInstance::getAudioSampleRate() {
|
|||||||
void DemodulatorInstance::setGain(float gain_in) {
|
void DemodulatorInstance::setGain(float gain_in) {
|
||||||
currentAudioGain = gain_in;
|
currentAudioGain = gain_in;
|
||||||
audioThread->setGain(gain_in);
|
audioThread->setGain(gain_in);
|
||||||
wxGetApp().getDemodMgr().setLastGain(gain_in);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float DemodulatorInstance::getGain() {
|
float DemodulatorInstance::getGain() {
|
||||||
|
Loading…
Reference in New Issue
Block a user