From 5f3f6df6754054d42caa75eeed6d01d02cdd04e4 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 29 May 2022 21:01:49 +0200 Subject: [PATCH] Set default sample rate to 22050 on Windows --- Source/options.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Source/options.cpp b/Source/options.cpp index cefe028e8..9e03df042 100644 --- a/Source/options.cpp +++ b/Source/options.cpp @@ -35,17 +35,8 @@ namespace devilution { #define DEFAULT_HEIGHT 480 #endif #ifndef DEFAULT_AUDIO_SAMPLE_RATE -#if defined(_WIN64) || defined(_WIN32) -// The sound API used by SDL in Windows (WASAPI) isn't great -// at upsampling from 22050 Hz on some drivers. -// -// Upsample ourselves on Windows by default. -// See https://github.com/diasurgical/devilutionX/issues/1390 -#define DEFAULT_AUDIO_SAMPLE_RATE 48000 -#else #define DEFAULT_AUDIO_SAMPLE_RATE 22050 #endif -#endif #ifndef DEFAULT_AUDIO_CHANNELS #define DEFAULT_AUDIO_CHANNELS 2 #endif