summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/WaveFile.cpp
diff options
context:
space:
mode:
authorChris Burgener <christhecoolist@gmail.com>2017-01-08 13:51:00 -0500
committerChris Burgener <christhecoolist@gmail.com>2017-01-08 13:53:44 -0500
commit47b3a9c68ed1cc2879a4af3938c40022d36fa79b (patch)
tree2ffed6337bbcb952d85cc14f876c8cbce95de52f /Source/Core/AudioCommon/WaveFile.cpp
parent358de1e2ee71883e463b063da77f0a65bb14a8fb (diff)
Add Silent Audio Dumping INI Option
Diffstat (limited to 'Source/Core/AudioCommon/WaveFile.cpp')
-rw-r--r--Source/Core/AudioCommon/WaveFile.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/WaveFile.cpp b/Source/Core/AudioCommon/WaveFile.cpp
index 912dc7fbf0..c7013f10ae 100644
--- a/Source/Core/AudioCommon/WaveFile.cpp
+++ b/Source/Core/AudioCommon/WaveFile.cpp
@@ -11,6 +11,8 @@
#include "Common/MsgHandler.h"
#include "Common/StringUtil.h"
+#include "Core/ConfigManager.h"
+
constexpr size_t WaveFileWriter::BUFFER_SIZE;
WaveFileWriter::WaveFileWriter()
@@ -27,7 +29,8 @@ bool WaveFileWriter::Start(const std::string& filename, unsigned int HLESampleRa
// Ask to delete file
if (File::Exists(filename))
{
- if (AskYesNoT("Delete the existing file '%s'?", filename.c_str()))
+ if (SConfig::GetInstance().m_DumpAudioSilent ||
+ AskYesNoT("Delete the existing file '%s'?", filename.c_str()))
{
File::Delete(filename);
}