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
cb4889d9
Commit
cb4889d9
authored
Aug 18, 2006
by
Sagar Mittal
Committed by
Alexandre Julliard
Aug 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: DSoundRender: Do not overwrite a full buffer.
parent
5c07d88e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
dsoundrender.c
dlls/quartz/dsoundrender.c
+7
-0
No files found.
dlls/quartz/dsoundrender.c
View file @
cb4889d9
...
...
@@ -179,6 +179,13 @@ static HRESULT DSoundRender_SendSampleData(DSoundRenderImpl* This, LPBYTE data,
else
buf_free
=
DSBUFFERSIZE
-
This
->
write_pos
+
play_pos
;
/* This situation is ambiguous; Assume full when playing */
if
(
buf_free
==
DSBUFFERSIZE
&&
This
->
started
)
{
Sleep
(
10
);
continue
;
}
size2
=
min
(
buf_free
,
size
);
hr
=
IDirectSoundBuffer_Lock
(
This
->
dsbuffer
,
This
->
write_pos
,
size2
,
&
lpbuf1
,
&
dwsize1
,
&
lpbuf2
,
&
dwsize2
,
0
);
if
(
hr
!=
DS_OK
)
{
...
...
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