To get rid of deprecated warnings in the CoreAudio code I adapted the changes from ScummVM to DOSBox (and before that to Exult and Pentagram).
I left some of the explanation comments in so you know why I did some of the stuff.
In the soundfont loading there are still whitespaces that should probably be tabbed but I didn't want to change that so the changes are more visible.
I also switched the soundfont "RequireNoErr" to OSErr err because I didn't know how to do the CoreAudio loading fail at the end of the soundfont stuff otherwise.
Dominus
fiddled with MAC_OS_X_VERSION_MIN_REQUIRED instead of MAC_OS_X_VERSION_MAX_ALLOWED since newer Clang seems to have problems with MAX_ALLOWED
Now I'm using the MAC_OS_X_VERSION_MAX_ALLOWED correctly, same how SDL uses it. Please please add this patch :)
Added. Thanks