Pulse audio empty struct implementation. Working on it though

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4428 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2009-10-15 17:28:23 +00:00
parent a05fbd8525
commit 5834fa6710
6 changed files with 171 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include "NullSoundStream.h"
#include "CoreAudioSoundStream.h"
#include "OpenALStream.h"
#include "PulseAudioStream.h"
namespace AudioCommon
{
@ -43,6 +44,8 @@ namespace AudioCommon
soundStream = new OpenALStream(mixer);
if (backend == BACKEND_ALSA && AlsaSound::isValid())
soundStream = new AlsaSound(mixer);
if (backend == BACKEND_PULSEAUDIO && PulseAudio::isValid())
soundStream = new PulseAudio(mixer);
if (backend == BACKEND_NULL && NullSound::isValid())
soundStream = new NullSound(mixer);
@ -101,6 +104,8 @@ namespace AudioCommon
backends.push_back(BACKEND_OPENAL);
if (AlsaSound::isValid())
backends.push_back(BACKEND_ALSA);
if (PulseAudio::isValid())
backends.push_back(BACKEND_PULSEAUDIO);
if (NullSound::isValid())
backends.push_back(BACKEND_NULL);