Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#6240 OS X - CoreAudio midi driver SDK 10.5 problem

closed-fixed
clone2727
None
5
2013-02-01
2013-01-28
No

Hi,

when you built for i386 against SDK 10.5 this will fail as
"AudioComponentDescription"
does not exist in the SDK.
I solved this by adding OS X 10.5 to the USE_DEPRECATED_COREAUDIO_API definition by changing
#if TARGET_CPU_PPC || TARGET_CPU_PPC64 || !defined(MAC_OS_X_VERSION_10_6)
to
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 1060)

This might need fine tuning since the new way to load a soundfont is valid for 10.5 but not <10.5...

Discussion

  • I'm sorry to be unclear. It doesn't fail, it's just that you could compile with the undeprecated stuff, except for the "AudioComponentDescription" part.
    Looking too much at coreaudio code today :)

     
  • clone2727
    clone2727
    2013-01-29

    The deprecation part isn't really a bug. I'm waiting on Dominus to report back on soundfonts on 10.5 which he said he'll do tomorrow.

     
  • clone2727
    clone2727
    2013-01-29

    • assigned_to: nobody --> mthreepwood
     
  • if you compile ScummVm git against 10.5 SDK in 32bit loading a custom soundfont will fail, when run in 10.8
    otoh, soundfont loading done with FSRef instead of FSSpec works fine in 10.4 ppc,
    so I'd suggest using FSRef for that OR make a 10.5 compile use the new soundfont code via cfsurl

     
  • clone2727
    clone2727
    2013-02-01

    • status: open --> closed-fixed
     
  • clone2727
    clone2727
    2013-02-01

    Fixed in 412ac740aa04428251a94073357f5458ed217f3f