mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
include file + line number with the log
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user