From d069fb3af8fc68c31ceaee7d98a9c6c41df9fd34 Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Fri, 25 Nov 2022 20:32:12 +0100 Subject: [PATCH] more fixes --- misc_modules/recorder/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc_modules/recorder/src/main.cpp b/misc_modules/recorder/src/main.cpp index 597beaf3..eee452c3 100644 --- a/misc_modules/recorder/src/main.cpp +++ b/misc_modules/recorder/src/main.cpp @@ -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();