• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problem with SimpleSDK
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Problem with SimpleSDK (From: Jon McCormack <email@hidden>)

  • Prev by Date: Problem with SimpleSDK
  • Next by Date: Re: AU not recognised by some hosts
  • Previous by thread: Problem with SimpleSDK
  • Next by thread: OT: seeking simple digital interface which can pass AC-3 _input_
  • Index(es):
    • Date
    • Thread