If audio is disabled, don't play background audio.

This commit is contained in:
The Dax 2015-02-23 03:07:34 -05:00
parent 9489f80a46
commit 31fafe3b32

@ -9,6 +9,7 @@
#include "Core/HLE/__sceAudio.h"
#include "Common/FixedSizeQueue.h"
#include "GameInfoCache.h"
#include "Core/Config.h"
// Really simple looping in-memory AT3 player that also takes care of reading the file format.
// Turns out that AT3 files used for this are modified WAVE files so fairly easy to parse.
@ -176,6 +177,10 @@ void SetBackgroundAudioGame(const std::string &path) {
return;
}
if (!g_Config.bEnableSound) {
return;
}
gameLastChanged = time_now_d();
if (at3Reader) {
at3Reader->Shutdown();