fix sound clicking from chaingunners (#837)

This commit is contained in:
Roman Fomin 2022-12-09 14:12:56 +07:00 committed by GitHub
parent e4ecf2d163
commit 61302e811f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -774,7 +774,7 @@ void I_InitSound(void)
}
if (Mix_OpenAudioDevice(snd_samplerate, AUDIO_S16SYS, 2, GetSliceSize(), NULL,
SDL_AUDIO_ALLOW_FREQUENCY_CHANGE | SDL_AUDIO_ALLOW_SAMPLES_CHANGE) < 0)
SDL_AUDIO_ALLOW_FREQUENCY_CHANGE) < 0)
{
printf("Couldn't open audio with desired format.\n");
return;