Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aaa9e41f
Commit
aaa9e41f
authored
Aug 31, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Sep 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Change default bpp and sample frequency to be better for the ears.
parent
b9304bd6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
dsound_main.c
dlls/dsound/dsound_main.c
+6
-6
audio.c
programs/winecfg/audio.c
+2
-2
No files found.
dlls/dsound/dsound_main.c
View file @
aaa9e41f
...
...
@@ -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
=
2205
0
;
int
ds_default_bits_per_sample
=
8
;
int
ds_default_sample_rate
=
4410
0
;
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
!=
2205
0
)
WARN
(
"ds_default_sample_rate = %d (default=
2205
0)
\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
!=
4410
0
)
WARN
(
"ds_default_sample_rate = %d (default=
4410
0)
\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
)
...
...
programs/winecfg/audio.c
View file @
aaa9e41f
...
...
@@ -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"
,
"
2205
0"
);
buf
=
get_reg_key
(
config_key
,
keypath
(
"DirectSound"
),
"DefaultSampleRate"
,
"
4410
0"
);
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment