Change the log level of the "failed to load sound buffer" as it shouldn't be a popup because within my interpreation it is not within the definition of what POPUP should be used for.

This commit is contained in:
Richard Harrison
2017-02-10 08:56:27 +01:00
parent a28cf0f860
commit 143a47482b

View File

@@ -555,7 +555,7 @@ unsigned int SGSoundMgr::request_buffer(SGSoundSample *sample)
bool res = load(sample_name, &sample_data, &format, &size, &freq, &block);
if (res == false) return NO_BUFFER;
} catch (sg_exception& e) {
SG_LOG(SG_SOUND, SG_POPUP,
SG_LOG(SG_SOUND, SG_ALERT,
"failed to load sound buffer:\n" << e.getFormattedMessage());
sample->set_buffer( SGSoundMgr::FAILED_BUFFER );
return FAILED_BUFFER;