Skip to content
This repository
Browse code

[osx] fix app start on 10.9

  • Loading branch information...
commit 3fc41bf8b7e3fddf3ae6d33cf21a7eab3f799415 1 parent 6aa6247
Zeljko Ametovic authored June 19, 2013
10  xbmc/cores/AudioEngine/Engines/CoreAudio/CoreAudioUnit.cpp
@@ -300,18 +300,18 @@ void CCoreAudioUnit::GetFormatDesc(AEAudioFormat format,
300 300
     case AE_FMT_TRUEHD:
301 301
     case AE_FMT_EAC3:
302 302
       streamDesc->mFormatFlags |= kAudioFormatFlagsNativeEndian;
303  
-      streamDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
  303
+      streamDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
304 304
       break;
305 305
     case AE_FMT_S16LE:
306  
-      streamDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
  306
+      streamDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
307 307
       break;
308 308
     case AE_FMT_S16BE:
309 309
       streamDesc->mFormatFlags |= kAudioFormatFlagIsBigEndian;
310  
-      streamDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
  310
+      streamDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
311 311
       break;
312 312
     default:
313 313
       streamDesc->mFormatFlags |= kAudioFormatFlagsNativeEndian;
314  
-      streamDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
  314
+      streamDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
315 315
       break;
316 316
   }
317 317
   streamDesc->mChannelsPerFrame = format.m_channelLayout.Count();               // Number of interleaved audiochannels
@@ -334,7 +334,7 @@ void CCoreAudioUnit::GetFormatDesc(AEAudioFormat format,
334 334
     case AE_FMT_FLOAT:
335 335
       coreaudioDesc->mFormatFlags |= kAudioFormatFlagIsFloat;
336 336
     default:
337  
-      coreaudioDesc->mFormatFlags |= kAudioFormatFlagIsSignedInteger;
  337
+      coreaudioDesc->mFormatFlags |= kAudioFormatFlagsAudioUnitCanonical;
338 338
       break;
339 339
   }
340 340
   coreaudioDesc->mBitsPerChannel   = bps; //sizeof(Float32)<<3;

0 notes on commit 3fc41bf

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