Re: Problem with SimpleSDK
Re: Problem with SimpleSDK
- Subject: Re: Problem with SimpleSDK
- From: Jeff Moore <email@hidden>
- Date: Wed, 29 Aug 2007 17:18:48 -0700
This has been fixed in the version of this code that is distributed
with Leopard, but there isn't anything available for Tiger.
At any rate, the changes to fix the problem are pretty simple. The
problem is that the formats are all declared as big endian. You need
to go through all the places in RenderSin.cpp that assign the format
flags and replace the explicit big endian flags with their native
endian equivalent.
Here are the raw diffs of the changes for your convenience:
153,155c156
< theFormatFlags = kLinearPCMFormatFlagIsFloat
< | kLinearPCMFormatFlagIsBigEndian
< | kLinearPCMFormatFlagIsPacked
---
> theFormatFlags = kAudioFormatFlagsNativeFloatPacked
163c164
< | kLinearPCMFormatFlagIsBigEndian
---
> | kAudioFormatFlagsNativeEndian
172c173
< | kLinearPCMFormatFlagIsBigEndian
---
> | kAudioFormatFlagsNativeEndian
On Aug 29, 2007, at 5:01 PM, Jon McCormack wrote:
I've been running some audio code based on the examples in /
Developer/Examples/CoreAudio/SimpleSDK/. I recently upgraded from a
Powerbook G5 to a MacBook Pro and now the sample code (e.g.
DefaultOuputUnit) doesn't work correctly (it outputs noise rather
than sine tones). My own code based on this sample code now doesn't
sound right either!
Is there an update to the SimpleSDK code to work with the new
MacBooks?
--
Jeff Moore
Core Audio
Apple
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden