kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
fixed audio source crashing if no device is available
rodzic
993bf9128c
commit
f90e2d53a7
|
@ -184,6 +184,9 @@ private:
|
|||
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;
|
||||
parameters.deviceId = _this->devices[_this->devId].id;
|
||||
|
|
Ładowanie…
Reference in New Issue