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
ecfafa37
Commit
ecfafa37
authored
Jul 29, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jul 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Always commit at least 3 periods in dsoutput.
parent
408abf9a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
dsoutput.c
dlls/winealsa.drv/dsoutput.c
+1
-18
No files found.
dlls/winealsa.drv/dsoutput.c
View file @
ecfafa37
...
...
@@ -296,8 +296,6 @@ static HRESULT WINAPI IDsDriverBufferImpl_Unlock(PIDSDRIVERBUFFER iface,
return
DSERR_UNSUPPORTED
;
}
static
int
warnonce
;
static
HRESULT
SetFormat
(
IDsDriverBufferImpl
*
This
,
LPWAVEFORMATEX
pwfx
,
BOOL
forced
)
{
snd_pcm_t
*
pcm
=
NULL
;
...
...
@@ -382,26 +380,11 @@ static HRESULT SetFormat(IDsDriverBufferImpl *This, LPWAVEFORMATEX pwfx, BOOL fo
err
=
snd_pcm_hw_params_get_period_size
(
hw_params
,
&
psize
,
NULL
);
TRACE
(
"Period size is: %lu
\n
"
,
psize
);
/* If period size is 'high', try to commit less
* dmix needs at least 2 buffers to work successfully but prefers 3
* however it seems to work ok if I just commit 2 1/2 buffers
*/
if
(
psize
>=
512
)
{
if
(
psize
==
1024
&&
++
warnonce
==
1
)
FIXME
(
"Your alsa dmix period size is 1024, try decreasing it to 512 if possible
\n
"
);
else
if
(
psize
>
512
)
WARN
(
"Your alsa period size is excessively high (%lu)
\n
"
,
psize
);
This
->
mmap_commitahead
=
2
*
psize
+
psize
/
2
;
This
->
mmap_writeahead
=
2
*
psize
;
}
else
{
/* ALSA needs at least 3 buffers to work succesfully */
This
->
mmap_commitahead
=
3
*
psize
;
while
(
This
->
mmap_commitahead
<=
512
)
This
->
mmap_commitahead
+=
psize
;
This
->
mmap_writeahead
=
This
->
mmap_commitahead
;
}
if
(
This
->
pcm
)
{
...
...
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