summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/Src/AudioCommon.cpp
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2011-02-28 20:40:15 +0000
committerGlenn Rice <glennricster@gmail.com>2011-02-28 20:40:15 +0000
commitba54fac9eb74be6f73e20e2de953cf6f355be57f (patch)
treeee496d869da4f8a7026b94991fe33f560cb9851a /Source/Core/AudioCommon/Src/AudioCommon.cpp
parent1b8f4760247934e3bac649d45a887d304b5eb724 (diff)
Convert GetUserPath to return a std::string instead of a const char *. This simplifies its usage in most cases.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7265 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/AudioCommon/Src/AudioCommon.cpp')
-rw-r--r--Source/Core/AudioCommon/Src/AudioCommon.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/Core/AudioCommon/Src/AudioCommon.cpp b/Source/Core/AudioCommon/Src/AudioCommon.cpp
index 22758c53b4..67d892b557 100644
--- a/Source/Core/AudioCommon/Src/AudioCommon.cpp
+++ b/Source/Core/AudioCommon/Src/AudioCommon.cpp
@@ -54,12 +54,11 @@ namespace AudioCommon
ac_Config.Update();
if (soundStream->Start())
{
- if (ac_Config.m_DumpAudio) {
- char audio_file_name[255];
- snprintf(audio_file_name, 255, "%saudiodump.wav", File::GetUserPath(D_DUMPAUDIO_IDX));
- File::CreateFullPath(audio_file_name);
- mixer->StartLogAudio(audio_file_name);
- //soundStream->StartLogAudio(audio_file_name);
+ if (ac_Config.m_DumpAudio)
+ {
+ std::string audio_file_name = File::GetUserPath(D_DUMPAUDIO_IDX) + "audiodump.wav";
+ File::CreateFullPath(audio_file_name.c_str());
+ mixer->StartLogAudio(audio_file_name.c_str());
}
return soundStream;