diff options
| author | smelenchuk <smelenchuk@gmail.com> | 2011-02-11 18:59:42 +0000 |
|---|---|---|
| committer | smelenchuk <smelenchuk@gmail.com> | 2011-02-11 18:59:42 +0000 |
| commit | b0fa0a83f8a370e3661de3c06fce85e53973f189 (patch) | |
| tree | 2cff242878bfeb667ade8d7f65f513811b8337a6 /Source/Core/AudioCommon/Src/AudioCommon.cpp | |
| parent | ca78d3639ba621a99e325c919f6cbb2a46596990 (diff) | |
* Dump AVI output on every VI (fixes issue #4064).
* Add audio dumping (fixes issue #1638).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7131 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/AudioCommon/Src/AudioCommon.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/Src/AudioCommon.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Source/Core/AudioCommon/Src/AudioCommon.cpp b/Source/Core/AudioCommon/Src/AudioCommon.cpp index 547c0a8fe6..043d07d151 100644 --- a/Source/Core/AudioCommon/Src/AudioCommon.cpp +++ b/Source/Core/AudioCommon/Src/AudioCommon.cpp @@ -16,6 +16,7 @@ // http://code.google.com/p/dolphin-emu/ #include "AudioCommon.h" +#include "FileUtil.h" #include "Mixer.h" #include "NullSoundStream.h" #include "DSoundStream.h" @@ -53,11 +54,13 @@ namespace AudioCommon ac_Config.Update(); if (soundStream->Start()) { -#if 0 - // Start the sound recording - if (ac_Config.record) - soundStream->StartLogAudio(FULL_DUMP_DIR g_Config.recordFile); -#endif + if (ac_Config.m_DumpAudio) { + char audio_file_name[255]; + snprintf(audio_file_name, 255, "%saudiodump.wav", File::GetUserPath(D_DUMPAUDIO_IDX)); + mixer->StartLogAudio(audio_file_name); + //soundStream->StartLogAudio(audio_file_name); + } + return soundStream; } PanicAlertT("Could not initialize backend %s.", backend.c_str()); @@ -76,10 +79,9 @@ namespace AudioCommon if (soundStream) { soundStream->Stop(); -#if 0 - if (ac_Config.record) - soundStream->StopLogAudio(); -#endif + if (ac_Config.m_DumpAudio) + soundStream->GetMixer()->StopLogAudio(); + //soundStream->StopLogAudio(); delete soundStream; soundStream = NULL; } |
