more fixes

This commit is contained in:
AlexandreRouma 2022-11-25 20:32:12 +01:00
parent f97ca9ac05
commit d069fb3af8

View File

@ -135,7 +135,8 @@ public:
// Configure the wav writer
if (recMode == RECORDER_MODE_AUDIO) {
samplerate = sigpath::sinkManager.getStreamSampleRate("Radio");
if (selectedStreamName.empty()) { return; }
samplerate = sigpath::sinkManager.getStreamSampleRate(selectedStreamName);
}
else {
samplerate = sigpath::iqFrontEnd.getSampleRate();
@ -155,6 +156,7 @@ public:
// Open audio stream or baseband
if (recMode == RECORDER_MODE_AUDIO) {
// TODO: Select the stereo to mono converter if needed
stereoStream = sigpath::sinkManager.bindStream(selectedStreamName);
stereoSink.setInput(stereoStream);
stereoSink.start();