Someone sent me the solution off list :) Another app must have set
the output rate to 96000 Hz. The fix is to open Utilities/Audio MIDI
Setup, then choose "Built-in Output" from the "Properties For" popup
menu, and set format to 44100 Hz. I would like to call some Carbon
code (or import from Cocoa) to set the rate to 44100 Hz before I call
sound manager code, if anyone knows how to do that. I also filed a
bug, ID# 5534339.
I do eventually want to rewrite our code to use audio units, but it
has gotten somewhat complex over the last 10 years. We do double
buffering and our own mixing, and read our own file format which is
similar to midi/mod. So far mp3 looping is unsatisfactory on OS X, I
ranted about it some months ago, but we do it anyway. It's not
seamless down to the sample. I heard that OpenAL could do it
seamlessly, but we might have to use ogg. Anyway, it is a huge can
of worms that I REALLY don't want to get into with the holiday season
starting. So thankfully this was an easy workaround that we can show
our users.
I'd say this was a pretty typical scenario for me. Back in 2001, it
felt like we hit an issue like this nearly every single day, for an
entire year. Now it's down to one per week or month I'd say. The
transition to Intel was remarkably painless, assuming that
deprecation only means that no new features will be added to APIs
like the sound manager. If they are eventually set to be axed (like
url access, which contain bugs that really can't be worked around),
then we are in for it...
------------------------------------------------------------------------
Zack Morris Z Sculpt Entertainment This Space
email@hidden http://www.zsculpt.com For Rent
------------------------------------------------------------------------
If the doors of perception were cleansed, everything would appear to man
as it is, infinite. -William Blake, The Marriage of Heaven and Hell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-games-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden