kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
fixed audio source crashing if no device is available
rodzic
993bf9128c
commit
f90e2d53a7
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue