fix: inverted boolean check for converting audio

This commit is contained in:
2025-03-22 15:33:53 +01:00
parent af2983b941
commit 5f776c4081

View File

@@ -76,8 +76,8 @@ static int8_t audio_cvt(audiodevice const* dev, SDL_AudioSpec const* spec, uint8
}
// converts the audio to the new format
if (!SDL_ConvertAudio(&cvt)) {
error("something went wrong when loading/converting an audio buffer! SDL Error: %s", SDL_GetError());
if (SDL_ConvertAudio(&cvt)) {
free(cvt.buf);
return 1;
}