include file + line number with the log

This commit is contained in:
2025-03-22 15:34:32 +01:00
parent 5f776c4081
commit e35588d9ea

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
error("something went wrong when loading/converting an audio buffer! SDL Error: %s", SDL_GetError());
if (SDL_ConvertAudio(&cvt)) {
error("%s:%u something went wrong when loading/converting an audio buffer! SDL Error: %s", __FILE_NAME__, __LINE__, SDL_GetError());
free(cvt.buf);
return 1;
}