SoundEmitter: Show filename that caused the SDL_Sound error
This commit is contained in:
parent
ee8a3ca402
commit
c5c58fa9cd
|
@ -188,7 +188,8 @@ SoundBuffer *SoundEmitter::allocateBuffer(const std::string &filename)
|
||||||
if (!sampleHandle)
|
if (!sampleHandle)
|
||||||
{
|
{
|
||||||
SDL_RWclose(&dataSource);
|
SDL_RWclose(&dataSource);
|
||||||
throw Exception(Exception::SDLError, "SDL_sound: %s", Sound_GetError());
|
throw Exception(Exception::SDLError, "%s.%s: %s",
|
||||||
|
filename.c_str(), extension, Sound_GetError());
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t decBytes = Sound_DecodeAll(sampleHandle);
|
uint32_t decBytes = Sound_DecodeAll(sampleHandle);
|
||||||
|
|
Loading…
Reference in New Issue