We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1566

Summary: make native_midi_osx to use AUGraphAddNode() on 10.5
Product: SDL_mixer Reporter: Ozkan Sezer <sezeroz>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.12   
Hardware: All   
OS: Mac OS X 10.5 (Intel)   
Attachments: AudioComponentDescription patch
MusicSequenceLoadSMFData patch

Description Ozkan Sezer 2012-08-10 02:53:51 UTC
Created attachment 921 [details]
AudioComponentDescription patch

Current native_midi_osx uses AUGraphAddNode() only on 10.6 because of struct AudioComponentDescription being a 10.6 SDK thing. However, AudioComponentDescription is actually the same as struct ComponentDescription with 20 bytes of size and the same offsets of all members, therefore, is binary compatible. So, defining AudioComponentDescription as ComponentDescription when compiling against 10.5 SDK does the trick. A patch is attached.
Comment 1 Ozkan Sezer 2012-08-10 13:01:15 UTC
On a somewhat related note, MusicSequenceLoadSMFData() can be enabled for ppc builds for 10.4 and lower in order to enable functionality back to 10.2.  A patch is attached (MusicSequenceLoadSMFData.diff).
Comment 2 Ozkan Sezer 2012-08-10 13:02:36 UTC
Created attachment 923 [details]
MusicSequenceLoadSMFData patch