mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-03 06:06:35 +00:00
If audio is disabled, don't play background audio.
This commit is contained in:
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user