CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
hrydgard

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: hrydgard/ppsspp
Path: blob/master/Windows/WindowsAudio.cpp
Views: 1401
1
#include "Common/OSVersion.h"
2
#include "WindowsAudio.h"
3
#include "DSoundStream.h"
4
#include "WASAPIStream.h"
5
6
WindowsAudioBackend *CreateAudioBackend(AudioBackendType type) {
7
if (IsVistaOrHigher()) {
8
switch (type) {
9
case AUDIO_BACKEND_WASAPI:
10
case AUDIO_BACKEND_AUTO:
11
return new WASAPIAudioBackend();
12
case AUDIO_BACKEND_DSOUND:
13
default:
14
return new DSoundAudioBackend();
15
}
16
} else {
17
return new DSoundAudioBackend();
18
}
19
}
20
21