mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
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:
parent
a05fbd8525
commit
5834fa6710
6 changed files with 171 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue