From a185b659e7b7eef61def3a08739868b65feb11c8 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 585191d7e..604abe28b 100644 --- a/Source/options.cpp +++ b/Source/options.cpp @@ -38,17 +38,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