From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2nSz-0004jY-C8 for qemu-devel@nongnu.org; Sat, 28 Nov 2015 16:55:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2nSy-0006m7-Hv for qemu-devel@nongnu.org; Sat, 28 Nov 2015 16:55:37 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:58995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2nSy-0006kf-CU for qemu-devel@nongnu.org; Sat, 28 Nov 2015 16:55:36 -0500 From: Peter Maydell Date: Sat, 28 Nov 2015 21:55:19 +0000 Message-Id: <1448747724-15572-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/5] audio/coreaudio.c: Fix deprecation warnings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: John Arbuckle , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Gerd Hoffmann , patches@linaro.org 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