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
4eea356e
Commit
4eea356e
authored
Mar 30, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Apr 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Don't fill the dsound buffer with small amounts.
parent
7a837e53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
dsoundrender.c
dlls/quartz/dsoundrender.c
+4
-8
No files found.
dlls/quartz/dsoundrender.c
View file @
4eea356e
...
...
@@ -203,13 +203,13 @@ static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data,
ERR
(
"Error GetCurrentPosition: %x
\n
"
,
hr
);
break
;
}
if
(
This
->
write_pos
<
play_pos
)
if
(
This
->
write_pos
<
=
play_pos
)
buf_free
=
play_pos
-
This
->
write_pos
;
else
buf_free
=
DSBUFFERSIZE
-
This
->
write_pos
+
play_pos
;
/*
This situation is ambiguous; Assume full when playing
*/
if
(
buf_free
==
DSBUFFERSIZE
)
/*
Wait for enough of the buffer to empty before filling it
*/
if
(
buf_free
<
DSBUFFERSIZE
/
4
)
{
Sleep
(
10
);
continue
;
...
...
@@ -234,11 +234,7 @@ static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data,
size
-=
dwsize1
+
dwsize2
;
data
+=
dwsize1
+
dwsize2
;
This
->
write_pos
=
(
This
->
write_pos
+
dwsize1
+
dwsize2
)
%
DSBUFFERSIZE
;
if
(
!
size
)
break
;
Sleep
(
10
);
}
while
(
This
->
state
==
State_Running
);
}
while
(
size
&&
This
->
state
==
State_Running
);
return
hr
;
}
...
...
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