Remove DirectSound support

Since we no longer support pre-Vista Windows, DirectSound support is no
longer needed. WASAPI is always going to be best.

Soon I'll upgrade our WASAPI backend with a new low-latency mode.
This commit is contained in:
Henrik Rydgård committed 2025-06-16 14:50:48 +02:00
1 parent 5f92f80a15
commit db1b87aad1
54 files changed
+22 -369

No files matched your search

+1 -13
View File
@@ -1,19 +1,7 @@
#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();
}
return new WASAPIAudioBackend();
}