mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-11 18:57:11 +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) {
|
void selectDemod(demod::Demodulator* demod) {
|
||||||
// Stopcurrently selected demodulator and select new
|
// Stopcurrently selected demodulator and select new
|
||||||
afChain.stop();
|
afChain.setInput(&dummyAudioStream, [=](dsp::stream<dsp::stereo_t>* out){ stream.setInput(out); });
|
||||||
if (selectedDemod) {
|
if (selectedDemod) {
|
||||||
selectedDemod->stop();
|
selectedDemod->stop();
|
||||||
delete selectedDemod;
|
delete selectedDemod;
|
||||||
}
|
}
|
||||||
selectedDemod = demod;
|
selectedDemod = demod;
|
||||||
afChain.start();
|
|
||||||
|
|
||||||
// Give the demodulator the most recent audio SR
|
// Give the demodulator the most recent audio SR
|
||||||
selectedDemod->AFSampRateChanged(audioSampleRate);
|
selectedDemod->AFSampRateChanged(audioSampleRate);
|
||||||
|
Loading…
Reference in New Issue
Block a user