mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
If audio is disabled, don't play background audio.
This commit is contained in:
parent
9489f80a46
commit
31fafe3b32
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue