From fd2e169dc904c53bb45d100a2898b0b1aa67c61e Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Tue, 27 Mar 2018 23:05:08 +0300 Subject: [PATCH] =?UTF-8?q?Seems=20like=20the=20audio=20bug=20introduced?= =?UTF-8?q?=20in=20SDL=202.0.5=20for=20macOS=20wasn=E2=80=99t=20fixed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SDL/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SDL/main.c b/SDL/main.c index 4387b2d..dda7803 100755 --- a/SDL/main.c +++ b/SDL/main.c @@ -447,9 +447,10 @@ int main(int argc, char **argv) want_aspec.freq = AUDIO_FREQUENCY; want_aspec.format = AUDIO_S16SYS; want_aspec.channels = 2; -#if SDL_COMPILEDVERSION == 2005 && defined(__APPLE__) + printf("SDL version is %d\n", SDL_COMPILEDVERSION); +#if SDL_COMPILEDVERSION >= 2005 && defined(__APPLE__) /* SDL 2.0.5 on macOS introduced a bug where certain combinations of buffer lengths and frequencies - fail to produce audio correctly. This bug was fixed 2.0.6. */ + fail to produce audio correctly. */ want_aspec.samples = 2048; #else want_aspec.samples = 512;