Permalink
Browse files

[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...
night199uk committed Sep 10, 2012
1 parent 5c0590b commit ac80b210a260f4f63de0023c41605577b3f3bc44
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioUnit.cpp
@@ -537,7 +537,7 @@ bool CAUOutputDevice::EnableInputOuput()
if (hasio)
{
UInt32 enable;
- enable = 1;
+ enable = 0;
ret = AudioUnitSetProperty(m_audioUnit,
kAudioOutputUnitProperty_EnableIO, kAudioUnitScope_Input, kInputBus, &enable, sizeof(enable));
if (ret != noErr)

0 comments on commit ac80b21

Please sign in to comment.