Received: from eggs.gnu.org ([2001:4830:134:3::10]:52908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3nlp-0003UB-1P for qemu-devel@nongnu.org; Tue, 01 Dec 2015 11:27:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3nll-0000Ev-Qn for qemu-devel@nongnu.org; Tue, 01 Dec 2015 11:27:12 -0500 Received: from mail-qg0-x232.google.com ([2607:f8b0:400d:c04::232]:32779) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3nll-0000Eo-Mh for qemu-devel@nongnu.org; Tue, 01 Dec 2015 11:27:09 -0500 Received: by qgea14 with SMTP id a14so9129442qge.0 for ; Tue, 01 Dec 2015 08:27:09 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <1448747724-15572-1-git-send-email-peter.maydell@linaro.org> Date: Tue, 1 Dec 2015 11:27:06 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <82FD3D54-D542-4AC9-85CD-B7AF78E9B96B@gmail.com> References: <1448747724-15572-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [PATCH 0/5] audio/coreaudio.c: Fix deprecation warnings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Gerd Hoffmann , qemu-devel qemu-devel , patches@linaro.org On Nov 28, 2015, at 4:55 PM, Peter Maydell wrote: > 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. >=20 > 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). >=20 > 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. >=20 > (This patch set is intended for 2.6, not 2.5.) >=20 > 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 >=20 > audio/coreaudio.c | 314 = +++++++++++++++++++++++++++++++++++++++++++----------- > 1 file changed, 252 insertions(+), 62 deletions(-) >=20 > --=20 > 2.6.2 All the patches applied and compiled without problem on Mac OS 10.6.8. I = played video and mp3 files in QEMU running a Windows XP guest. They all = played perfectly.=20 I really was against the idea of removing Mac OS 10.5 support when I = first heard the idea. But I did think about it before saying anything. I = personally started out building QEMU on Mac OS 10.3. But that was years = ago. Technology has moved on. Everyone wants to run their emulator on = the fastest hardware they have. This hardware is probably not going to = include anything running Mac OS 10.5. Removing Mac OS 10.5 support might = be a good idea. I don't think we would inconvenience anyone. The only = evidence I found of someone using Mac OS 10.5 to build QEMU was from = 2012.=20 We are only removing support for Mac OS 10.5 because of a warning = message that appears during compilation. We could just disable warnings = for that file. But the depreciated audio functions might not be around in the future, so probably better to say goodbye to them = now before they cause real problems.