Commit d18cc75e authored by atraczyk's avatar atraczyk

audio: fix undo of commit 149e8e5c

- commit 71882bc4 accidentally
  undid commit 149e8e5c

Change-Id: Ie1165a4d856be3b2b07d7724e2c8284b1c92aca0
parent f54fd7fd
......@@ -386,8 +386,13 @@ PortAudioLayer::PortAudioLayerImpl::init(PortAudioLayer& parent)
terminate();
}
indexRing_ = indexOut_ = indexOut_ == paNoDevice ? Pa_GetDefaultOutputDevice() : indexOut_;
indexIn_ = indexIn_ == paNoDevice ? Pa_GetDefaultInputDevice() : indexIn_;
#ifdef RING_UWP
indexRing_ = indexOut_ = Pa_GetDefaultOutputDevice();
indexIn_ = Pa_GetDefaultInputDevice();
#else
indexRing_ = indexOut_ = indexOut_ == paNoDevice ? Pa_GetDefaultOutputDevice() : indexOut_;
indexIn_ = indexIn_ == paNoDevice ? Pa_GetDefaultInputDevice() : indexIn_;
#endif
if (indexOut_ != paNoDevice) {
if (const auto outputDeviceInfo = Pa_GetDeviceInfo(indexOut_)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment