diff --git a/es-core/src/AudioManager.cpp b/es-core/src/AudioManager.cpp index e4e3dce12..735099bc8 100644 --- a/es-core/src/AudioManager.cpp +++ b/es-core/src/AudioManager.cpp @@ -1,4 +1,5 @@ #include "AudioManager.h" +#include "Settings.h" #include #include "Log.h" @@ -62,7 +63,7 @@ AudioManager::~AudioManager() std::shared_ptr & AudioManager::getInstance() { //check if an AudioManager instance is already created, if not create one - if (sInstance == nullptr) { + if (sInstance == nullptr && Settings::getInstance()->getBool("EnableSounds")) { sInstance = std::shared_ptr(new AudioManager); } return sInstance;