mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-24 01:48:28 +01:00
another attempt at a fix
This commit is contained in:
parent
f2b8418a25
commit
218fd6ccf4
@ -318,13 +318,12 @@ private:
|
||||
|
||||
void selectDemod(demod::Demodulator* demod) {
|
||||
// Stopcurrently selected demodulator and select new
|
||||
afChain.stop();
|
||||
afChain.setInput(&dummyAudioStream, [=](dsp::stream<dsp::stereo_t>* out){ stream.setInput(out); });
|
||||
if (selectedDemod) {
|
||||
selectedDemod->stop();
|
||||
delete selectedDemod;
|
||||
}
|
||||
selectedDemod = demod;
|
||||
afChain.start();
|
||||
|
||||
// Give the demodulator the most recent audio SR
|
||||
selectedDemod->AFSampRateChanged(audioSampleRate);
|
||||
|
Loading…
Reference in New Issue
Block a user