From 31fafe3b32c5468ae8af0af2f87bab1d3ed751e0 Mon Sep 17 00:00:00 2001 From: The Dax Date: Mon, 23 Feb 2015 03:07:34 -0500 Subject: [PATCH] If audio is disabled, don't play background audio. --- UI/BackgroundAudio.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/BackgroundAudio.cpp b/UI/BackgroundAudio.cpp index b912cb20d7..184fbdaab4 100644 --- a/UI/BackgroundAudio.cpp +++ b/UI/BackgroundAudio.cpp @@ -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();