[PATCH 06/13] dsound: New registry key 'ResampleQuality'. Default samplerate changed to 48kHz, it should be optimal in most cases. (resend)

Krzysztof Nikiel knik00 at gmail.com
Fri Feb 11 05:41:32 CST 2011


---
 dlls/dsound/dsound_main.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c
index 5d4fb24..e2bc0bf 100644
--- a/dlls/dsound/dsound_main.c
+++ b/dlls/dsound/dsound_main.c
@@ -96,8 +96,9 @@ int ds_snd_queue_max = 10;
 int ds_snd_queue_min = 6;
 int ds_snd_shadow_maxsize = 2;
 int ds_hw_accel = DS_HW_ACCEL_FULL;
-int ds_default_sample_rate = 44100;
+int ds_default_sample_rate = 48000;
 int ds_default_bits_per_sample = 16;
+int ds_resample_quality = 2;
 static int ds_default_playback;
 static int ds_default_capture;
 static HINSTANCE instance;
@@ -187,6 +188,9 @@ void setup_dsound_options(void)
     if (!get_config_key( hkey, appkey, "DefaultBitsPerSample",
buffer, MAX_PATH ))
         ds_default_bits_per_sample = atoi(buffer);

+    if (!get_config_key( hkey, appkey, "ResampleQuality", buffer, MAX_PATH ))
+        ds_resample_quality = atoi(buffer);
+
     if (appkey) RegCloseKey( appkey );
     if (hkey) RegCloseKey( hkey );

@@ -205,6 +209,7 @@ void setup_dsound_options(void)
     TRACE("ds_default_sample_rate = %d\n", ds_default_sample_rate);
     TRACE("ds_default_bits_per_sample = %d\n", ds_default_bits_per_sample);
     TRACE("ds_snd_shadow_maxsize = %d\n", ds_snd_shadow_maxsize);
+    TRACE("ds_resample_quality = %d\n", ds_resample_quality);
 }

 static const char * get_device_id(LPCGUID pGuid)
-- 
1.7.2.3



More information about the wine-patches mailing list