From e79415209fe833b32bce0cacc14577d6554b72d0 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Thu, 4 Feb 2010 10:51:22 +0000 Subject: [PATCH] Made audio capture work in Mac OS X 10.5 / 10.6 git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1391 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Audio/SoundRecorder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SFML/Audio/SoundRecorder.cpp b/src/SFML/Audio/SoundRecorder.cpp index ac787b2a..c12a49d5 100644 --- a/src/SFML/Audio/SoundRecorder.cpp +++ b/src/SFML/Audio/SoundRecorder.cpp @@ -137,7 +137,8 @@ bool SoundRecorder::CanCapture() { ALCdevice* Device = priv::AudioDevice::GetInstance().GetDevice(); - return alcIsExtensionPresent(Device, "ALC_EXT_CAPTURE") != AL_FALSE; + return (alcIsExtensionPresent(Device, "ALC_EXT_CAPTURE") != AL_FALSE) || + (alcIsExtensionPresent(Device, "ALC_EXT_capture") != AL_FALSE); // "bug" in Mac OS X 10.5 and 10.6 }