diff options
| author | magumagu <magumagu9@gmail.com> | 2014-04-10 18:28:19 -0700 |
|---|---|---|
| committer | magumagu <magumagu9@gmail.com> | 2014-06-14 15:55:20 -0700 |
| commit | d43ecd0bd1c3387a1d7ea968069b093e1ba81f2d (patch) | |
| tree | 85001bd0a1b487ee88b15c5b9674e0c69d9d0dfb /Source/Core/AudioCommon/AudioCommon.cpp | |
| parent | d7736ac7144ae5a16f2a60fd02523040ee8e0ea3 (diff) | |
Rewrite handling of DTK (streaming) audio.
The primary motivation here is to make sure we submit samples from the
CPU thread. This makes sure the timing of related interrupts accurate,
and generally keeps the different kinds of audio synchronized. This will also
allow improvements to audio dumping functionality.
The new code is also more concise because it gets rid of some duplicated
audio mixing code.
Diffstat (limited to 'Source/Core/AudioCommon/AudioCommon.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/AudioCommon.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp index c476fe6a5c..5cc57800b5 100644 --- a/Source/Core/AudioCommon/AudioCommon.cpp +++ b/Source/Core/AudioCommon/AudioCommon.cpp @@ -28,10 +28,7 @@ namespace AudioCommon { SoundStream *InitSoundStream(void *hWnd) { - unsigned int AISampleRate, DACSampleRate; - AudioInterface::Callback_GetSampleRate(AISampleRate, DACSampleRate); - delete soundStream; - CMixer *mixer = new CMixer(AISampleRate, DACSampleRate, 48000); + CMixer *mixer = new CMixer(48000); // TODO: possible memleak with mixer |
