add line number and file name to error log

This commit is contained in:
2025-03-22 15:31:12 +01:00
parent 60ae11de10
commit a46e48f603

View File

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