mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Cleanup: Split out the WASAPI code into its own file.
This commit is contained in:
1 parent
f90439a70e
commit
f8ea364371
12 files changed
+356
-313
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#include "Common/OSVersion.h"
|
||||
#include "WindowsAudio.h"
|
||||
#include "DSoundStream.h"
|
||||
#include "WASAPIStream.h"
|
||||
|
||||
WindowsAudioBackend *CreateAudioBackend(AudioBackendType type) {
|
||||
if (IsVistaOrHigher()) {
|
||||
switch (type) {
|
||||
case AUDIO_BACKEND_WASAPI:
|
||||
case AUDIO_BACKEND_AUTO:
|
||||
return new WASAPIAudioBackend();
|
||||
case AUDIO_BACKEND_DSOUND:
|
||||
default:
|
||||
return new DSoundAudioBackend();
|
||||
}
|
||||
} else {
|
||||
return new DSoundAudioBackend();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user