mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-10 14:23:27 -05:00
Fix for broken OSX audio
This commit is contained in:
parent
a8070ca953
commit
590d494fea
@ -326,6 +326,7 @@ void AudioThread::setupDevice(int deviceId) {
|
|||||||
} else {
|
} else {
|
||||||
deviceController[parameters.deviceId]->bindThread(this);
|
deviceController[parameters.deviceId]->bindThread(this);
|
||||||
}
|
}
|
||||||
|
active = true;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
if (dac.isStreamOpen()) {
|
if (dac.isStreamOpen()) {
|
||||||
@ -473,6 +474,7 @@ void AudioThread::setActive(bool state) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
active = state;
|
||||||
#else
|
#else
|
||||||
if (state && !active && outputDevice != -1) {
|
if (state && !active && outputDevice != -1) {
|
||||||
active = state;
|
active = state;
|
||||||
|
Loading…
Reference in New Issue
Block a user