Added Enable Other Audio option to DSP HLE

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1233 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2008-11-21 02:53:54 +00:00
parent 8a77ca8189
commit f1e8b46c6c
9 changed files with 63 additions and 26 deletions

View File

@ -21,6 +21,7 @@
#include "../Config.h"
#include "../Globals.h"
#include "../DSPHandler.h"
#include "../Logging/Console.h"
#include "Thread.h"
#include "Mixer.h"
#include "FixedSizeQueue.h"
@ -99,12 +100,16 @@ void Mixer_PushSamples(short *buffer, int num_stereo_samples, int sample_rate) {
static int acc=0;
#ifdef _WIN32
if (!GetAsyncKeyState(VK_TAB)) {
if (! (GetAsyncKeyState(VK_TAB)) && g_Config.m_EnableThrottle) {
/* This is only needed for non-AX sound, currently directly streamed and
DTK sound. For AX we call DSound_UpdateSound in AXTask() for example. */
while (queue_size > queue_maxlength / 2) {
DSound::DSound_UpdateSound();
Sleep(0);
}
} else {
wprintf("Tab");
return;
}
#else