mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-18 22:32: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) {
|
static void start(void* ctx) {
|
||||||
AudioSourceModule* _this = (AudioSourceModule*)ctx;
|
AudioSourceModule* _this = (AudioSourceModule*)ctx;
|
||||||
if (_this->running) { return; }
|
if (_this->running) { return; }
|
||||||
|
|
||||||
|
// If no device is selected, give up
|
||||||
|
if (_this->selectedDevice.empty()) { return; }
|
||||||
|
|
||||||
// Stream options
|
// Stream options
|
||||||
RtAudio::StreamParameters parameters;
|
RtAudio::StreamParameters parameters;
|
||||||
|
|||||||
Reference in New Issue
Block a user