Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[osx] fix app start on 10.9

  • Loading branch information...
commit 3fc41bf8b7e3fddf3ae6d33cf21a7eab3f799415 1 parent 6aa6247
Zeljko Ametovic amet authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioUnit.cpp
10 xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioUnit.cpp
View
@@ -300,18 +300,18 @@ void CCoreAudioUnit::GetFormatDesc(AEAudioFormat format,
case AE_FMT_TRUEHD:
case AE_FMT_EAC3:
streamDesc->mFormatFlags |= kAudioFormatFlagsNativeEndian;
- streamDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
+ streamDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
break;
case AE_FMT_S16LE:
- streamDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
+ streamDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
break;
case AE_FMT_S16BE:
streamDesc->mFormatFlags |= kAudioFormatFlagIsBigEndian;
- streamDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
+ streamDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
break;
default:
streamDesc->mFormatFlags |= kAudioFormatFlagsNativeEndian;
- streamDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
+ streamDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
break;
}
streamDesc->mChannelsPerFrame = format.m_channelLayout.Count(); // Number of interleaved audiochannels
@@ -334,7 +334,7 @@ void CCoreAudioUnit::GetFormatDesc(AEAudioFormat format,
case AE_FMT_FLOAT:
coreaudioDesc->mFormatFlags |= kAudioFormatFlagIsFloat;
default:
- coreaudioDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
+ coreaudioDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
break;
}
coreaudioDesc->mBitsPerChannel = bps; //sizeof(Float32)<<3;
Please sign in to comment.
Something went wrong with that request. Please try again.