mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-18 14:22:44 +00:00
fixed audio source crashing if no device is available
This commit is contained in:
@@ -183,6 +183,9 @@ private:
|
||||
static void start(void* ctx) {
|
||||
AudioSourceModule* _this = (AudioSourceModule*)ctx;
|
||||
if (_this->running) { return; }
|
||||
|
||||
// If no device is selected, give up
|
||||
if (_this->selectedDevice.empty()) { return; }
|
||||
|
||||
// Stream options
|
||||
RtAudio::StreamParameters parameters;
|
||||
|
||||
Reference in New Issue
Block a user