Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dc224421
Commit
dc224421
authored
Aug 18, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Tune some parameters to make pulseaudio work.
parent
944cb7ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
capture.c
dlls/dsound/capture.c
+1
-1
dsound_main.c
dlls/dsound/dsound_main.c
+3
-3
primary.c
dlls/dsound/primary.c
+2
-2
No files found.
dlls/dsound/capture.c
View file @
dc224421
...
...
@@ -1140,7 +1140,7 @@ IDirectSoundCaptureBufferImpl_Start(
if
(
device
->
buffer
)
{
int
c
;
DWORD
blocksize
=
DSOUND_fraglen
(
device
->
pwfx
->
nSamplesPerSec
,
device
->
pwfx
->
nBlockAlign
);
DWORD
blocksize
=
4
*
DSOUND_fraglen
(
device
->
pwfx
->
nSamplesPerSec
,
device
->
pwfx
->
nBlockAlign
);
device
->
nrofpwaves
=
device
->
buflen
/
blocksize
+
!!
(
device
->
buflen
%
blocksize
);
TRACE
(
"nrofpwaves=%d
\n
"
,
device
->
nrofpwaves
);
...
...
dlls/dsound/dsound_main.c
View file @
dc224421
...
...
@@ -90,9 +90,9 @@ HRESULT mmErr(UINT err)
/* All default settings, you most likely don't want to touch these, see wiki on UsefulRegistryKeys */
int
ds_emuldriver
=
0
;
int
ds_hel_buflen
=
32768
;
int
ds_snd_queue_max
=
1
0
;
int
ds_snd_queue_min
=
6
;
int
ds_hel_buflen
=
32768
*
2
;
int
ds_snd_queue_max
=
2
0
;
int
ds_snd_queue_min
=
14
;
int
ds_snd_shadow_maxsize
=
2
;
int
ds_hw_accel
=
DS_HW_ACCEL_FULL
;
int
ds_default_playback
=
0
;
...
...
dlls/dsound/primary.c
View file @
dc224421
...
...
@@ -46,13 +46,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(dsound);
*/
DWORD
DSOUND_fraglen
(
DWORD
nSamplesPerSec
,
DWORD
nBlockAlign
)
{
DWORD
fraglen
=
512
*
nBlockAlign
;
DWORD
fraglen
=
256
*
nBlockAlign
;
/* Compensate for only being roughly accurate */
if
(
nSamplesPerSec
<=
26000
)
fraglen
/=
2
;
if
(
nSamplesPerSec
<=
1
2
000
)
if
(
nSamplesPerSec
<=
1
0
000
)
fraglen
/=
2
;
if
(
nSamplesPerSec
>=
80000
)
...
...
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