From d43ecd0bd1c3387a1d7ea968069b093e1ba81f2d Mon Sep 17 00:00:00 2001 From: magumagu Date: Thu, 10 Apr 2014 18:28:19 -0700 Subject: 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. --- Source/Core/AudioCommon/AudioCommon.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Source/Core/AudioCommon/AudioCommon.cpp') 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 -- cgit v1.2.3