mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
yeah, start OpenAL sound output
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2764 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a5db816490
commit
13ddd0648b
4 changed files with 142 additions and 28 deletions
|
@ -3,7 +3,7 @@
|
|||
#include "AOSoundStream.h"
|
||||
#include "DSoundStream.h"
|
||||
#include "NullSoundStream.h"
|
||||
|
||||
#include "OpenALStream.h"
|
||||
|
||||
namespace AudioCommon {
|
||||
|
||||
|
@ -21,6 +21,10 @@ SoundStream *InitSoundStream(std::string backend, CMixer *mixer) {
|
|||
if (AOSound::isValid())
|
||||
soundStream = new AOSound(mixer);
|
||||
}
|
||||
else if (backend == "OpenAL") {
|
||||
if (OpenALStream::isValid())
|
||||
soundStream = new OpenALStream(mixer);
|
||||
}
|
||||
else if (backend == "NullSound") {
|
||||
soundStream = new NullSound(mixer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue