Skip to content
Snippets Groups Projects
Commit d18cc75e authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

audio: fix undo of commit 149e8e5c

- commit 71882bc4 accidentally
  undid commit 149e8e5c

Change-Id: Ie1165a4d856be3b2b07d7724e2c8284b1c92aca0
parent f54fd7fd
No related branches found
No related tags found
No related merge requests found
...@@ -386,8 +386,13 @@ PortAudioLayer::PortAudioLayerImpl::init(PortAudioLayer& parent) ...@@ -386,8 +386,13 @@ PortAudioLayer::PortAudioLayerImpl::init(PortAudioLayer& parent)
terminate(); terminate();
} }
#ifdef RING_UWP
indexRing_ = indexOut_ = Pa_GetDefaultOutputDevice();
indexIn_ = Pa_GetDefaultInputDevice();
#else
indexRing_ = indexOut_ = indexOut_ == paNoDevice ? Pa_GetDefaultOutputDevice() : indexOut_; indexRing_ = indexOut_ = indexOut_ == paNoDevice ? Pa_GetDefaultOutputDevice() : indexOut_;
indexIn_ = indexIn_ == paNoDevice ? Pa_GetDefaultInputDevice() : indexIn_; indexIn_ = indexIn_ == paNoDevice ? Pa_GetDefaultInputDevice() : indexIn_;
#endif
if (indexOut_ != paNoDevice) { if (indexOut_ != paNoDevice) {
if (const auto outputDeviceInfo = Pa_GetDeviceInfo(indexOut_)) { if (const auto outputDeviceInfo = Pa_GetDeviceInfo(indexOut_)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment