The coreaudio.c code has for some years now produced compilation warnings about our use of various APIs that were deprecated starting with OSX 10.6. This patchset updates our code to use their replacements.
I have been a bit conservative with the approach to moving away from AudioDeviceGetProperty/AudioDeviceSetProperty, because different sources on the web suggest either 10.6 or 10.5 was the point at which you could move to AudioObjectGetProperty/AudioObjectSetProperty, but I don't have a 10.5 system to test with. So I've left the old code in for when building on 10.5 (removing it would be a trivial matter of dropping a lot of ifdeffed code). Incidentally, on the subject of OSX 10.5, I think we should finally drop support for it unless anybody would like to volunteer to actually test building on it. I'll send a separate email about that. (This patch set is intended for 2.6, not 2.5.) Peter Maydell (5): audio/coreaudio.c: Factor out use of AudioHardwareGetProperty audio/coreaudio.c: Use new-in-OSX-10.6 API for getting default voice audio/coreaudio.c: Factor out uses of AudioDeviceGet/SetProperty audio/coreaudio.c: Use new-in-OSX-10.6 APIs when available audio/coreaudio.c: Avoid deprecated AudioDeviceAdd/RemoveIOProc APIs audio/coreaudio.c | 314 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 252 insertions(+), 62 deletions(-) -- 2.6.2