Linux: Add libao to DSL_NULL plugin so I get audio in linux

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@89 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Sonicadvance1 2008-07-27 14:07:52 +00:00
parent 3114c27143
commit 9d312559cf
4 changed files with 169 additions and 2 deletions

View file

@ -24,7 +24,7 @@
#include "AboutDlg.h"
#include "ConfigDlg.h"
#else
// TODO
#include "PCHW/AOSoundStream.h"
#endif
#include "PCHW/Mixer.h"
@ -110,6 +110,8 @@ void DSP_Initialize(DSPInitialize _dspInitialize)
#ifdef _WIN32
DSound::DSound_StartSound((HWND)g_dspInitialize.hWnd, g_Config.m_SampleRate, Mixer);
#else
AOSound::AOSound_StartSound(g_Config.m_SampleRate, Mixer);
#endif
}
@ -119,6 +121,8 @@ void DSP_Shutdown()
// delete the UCodes
#ifdef _WIN32
DSound::DSound_StopSound();
#else
AOSound::AOSound_StopSound();
#endif
CDSPHandler::Destroy();
}