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 - make native_midi_osx to use AUGraphAddNode() on 10.5
Summary: make native_midi_osx to use AUGraphAddNode() on 10.5
Status: RESOLVED FIXED
Alias: None
Product: SDL_mixer
Classification: Unclassified
Component: misc (show other bugs)
Version: 1.2.12
Hardware: All Mac OS X 10.5 (Intel)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 02:53 UTC by Ozkan Sezer
Modified: 2012-08-11 23:32 UTC (History)
0 users

See Also:


Attachments
AudioComponentDescription patch (2.03 KB, patch)
2012-08-10 02:53 UTC, Ozkan Sezer
Details | Diff
MusicSequenceLoadSMFData patch (1.26 KB, patch)
2012-08-10 13:02 UTC, Ozkan Sezer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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