Seems like the audio bug introduced in SDL 2.0.5 for macOS wasn’t fixed.

This commit is contained in:
Lior Halphon 2018-03-27 23:05:08 +03:00
parent 0e3d2770d9
commit fd2e169dc9
1 changed files with 3 additions and 2 deletions

View File

@ -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;