Commit aaa9e41f authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

dsound: Change default bpp and sample frequency to be better for the ears.

parent b9304bd6
......@@ -96,8 +96,8 @@ int ds_snd_queue_min = DS_SND_QUEUE_MIN;
int ds_hw_accel = DS_HW_ACCEL_FULL;
int ds_default_playback = 0;
int ds_default_capture = 0;
int ds_default_sample_rate = 22050;
int ds_default_bits_per_sample = 8;
int ds_default_sample_rate = 44100;
int ds_default_bits_per_sample = 16;
/*
* Get a config key from either the app-specific or the default config
......@@ -203,10 +203,10 @@ void setup_dsound_options(void)
WARN("ds_default_playback = %d (default=0)\n",ds_default_playback);
if (ds_default_capture != 0)
WARN("ds_default_capture = %d (default=0)\n",ds_default_playback);
if (ds_default_sample_rate != 22050)
WARN("ds_default_sample_rate = %d (default=22050)\n",ds_default_sample_rate);
if (ds_default_bits_per_sample != 8)
WARN("ds_default_bits_per_sample = %d (default=8)\n",ds_default_bits_per_sample);
if (ds_default_sample_rate != 44100)
WARN("ds_default_sample_rate = %d (default=44100)\n",ds_default_sample_rate);
if (ds_default_bits_per_sample != 16)
WARN("ds_default_bits_per_sample = %d (default=16)\n",ds_default_bits_per_sample);
}
static const char * get_device_id(LPCGUID pGuid)
......
......@@ -692,7 +692,7 @@ static void initAudioDlg (HWND hDlg)
for (i = 0; NULL != DSound_Rates[i]; ++i) {
SendDlgItemMessage(hDlg, IDC_DSOUND_RATES, CB_ADDSTRING, 0, (LPARAM) DSound_Rates[i]);
}
buf = get_reg_key(config_key, keypath("DirectSound"), "DefaultSampleRate", "22050");
buf = get_reg_key(config_key, keypath("DirectSound"), "DefaultSampleRate", "44100");
for (i = 0; NULL != DSound_Rates[i]; ++i) {
if (strcmp(buf, DSound_Rates[i]) == 0) {
SendDlgItemMessage(hDlg, IDC_DSOUND_RATES, CB_SETCURSEL, i, 0);
......@@ -704,7 +704,7 @@ static void initAudioDlg (HWND hDlg)
for (i = 0; NULL != DSound_Bits[i]; ++i) {
SendDlgItemMessage(hDlg, IDC_DSOUND_BITS, CB_ADDSTRING, 0, (LPARAM) DSound_Bits[i]);
}
buf = get_reg_key(config_key, keypath("DirectSound"), "DefaultBitsPerSample", "8");
buf = get_reg_key(config_key, keypath("DirectSound"), "DefaultBitsPerSample", "16");
for (i = 0; NULL != DSound_Bits[i]; ++i) {
if (strcmp(buf, DSound_Bits[i]) == 0) {
SendDlgItemMessage(hDlg, IDC_DSOUND_BITS, CB_SETCURSEL, i, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment