[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/5] audio/coreaudio.c: Fix deprecation warnings
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 0/5] audio/coreaudio.c: Fix deprecation warnings |
Date: |
Sat, 28 Nov 2015 21:55:19 +0000 |
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
- [Qemu-devel] [PATCH 0/5] audio/coreaudio.c: Fix deprecation warnings,
Peter Maydell <=
- [Qemu-devel] [PATCH 1/5] audio/coreaudio.c: Factor out use of AudioHardwareGetProperty, Peter Maydell, 2015/11/28
- [Qemu-devel] [PATCH 2/5] audio/coreaudio.c: Use new-in-OSX-10.6 API for getting default voice, Peter Maydell, 2015/11/28
- [Qemu-devel] [PATCH 5/5] audio/coreaudio.c: Avoid deprecated AudioDeviceAdd/RemoveIOProc APIs, Peter Maydell, 2015/11/28
- [Qemu-devel] [PATCH 3/5] audio/coreaudio.c: Factor out uses of AudioDeviceGet/SetProperty, Peter Maydell, 2015/11/28
- [Qemu-devel] [PATCH 4/5] audio/coreaudio.c: Use new-in-OSX-10.6 APIs when available, Peter Maydell, 2015/11/28