Skip to content
This repository
Browse code

[coreaudio] fix: don't try to enable audio input on the audio device …

…(i.e. recording), this can cause SetCurrentDevice to fail if the card has no input bus.
  • Loading branch information...
commit ac80b210a260f4f63de0023c41605577b3f3bc44 1 parent 5c0590b
night199uk night199uk authored
2  xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioUnit.cpp
@@ -537,7 +537,7 @@ bool CAUOutputDevice::EnableInputOuput()
537 537 if (hasio)
538 538 {
539 539 UInt32 enable;
540   - enable = 1;
  540 + enable = 0;
541 541 ret = AudioUnitSetProperty(m_audioUnit,
542 542 kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input, kInputBus, &enable, sizeof(enable));
543 543 if (ret != noErr)

0 comments on commit ac80b21

Please sign in to comment.
Something went wrong with that request. Please try again.