solve deadlock

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2788 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2009-03-29 20:18:55 +00:00
parent b6dd1d3f0a
commit e2a9f8c3bb
2 changed files with 14 additions and 18 deletions

View File

@ -336,19 +336,15 @@ void DSP_Update(int cycles)
{
#ifdef _WIN32
if (g_Dialog.CanDoStep())
#endif
gdsp_runx(100); // cycles
#endif
soundStream->Update();
}
void DSP_SendAIBuffer(unsigned int address, int sample_rate)
{
// TODO: This is not yet fully threadsafe.
if (!soundStream) {
return;
}
if (soundStream->GetMixer())
{
short samples[16] = {0}; // interleaved stereo