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
ace3c315
Commit
ace3c315
authored
Nov 21, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
Nov 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Don't change play position if IAudioClient methods fail.
parent
f53dd40a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mixer.c
dlls/dsound/mixer.c
+3
-2
No files found.
dlls/dsound/mixer.c
View file @
ace3c315
...
...
@@ -605,8 +605,6 @@ static void DSOUND_WaveQueue(DirectSoundDevice *device, BOOL force)
if
(
!
prebuf_bytes
)
return
;
device
->
in_mmdev_bytes
+=
prebuf_bytes
;
if
(
prebuf_bytes
+
read_offs_bytes
>
device
->
buflen
){
DWORD
chunk_bytes
=
device
->
buflen
-
read_offs_bytes
;
prebuf_frames
=
chunk_bytes
/
device
->
pwfx
->
nBlockAlign
;
...
...
@@ -631,6 +629,8 @@ static void DSOUND_WaveQueue(DirectSoundDevice *device, BOOL force)
return
;
}
device
->
in_mmdev_bytes
+=
prebuf_frames
*
device
->
pwfx
->
nBlockAlign
;
/* check if anything wrapped */
if
(
prebuf_bytes
>
0
){
prebuf_frames
=
prebuf_bytes
/
device
->
pwfx
->
nBlockAlign
;
...
...
@@ -648,6 +648,7 @@ static void DSOUND_WaveQueue(DirectSoundDevice *device, BOOL force)
WARN
(
"ReleaseBuffer failed: %08x
\n
"
,
hr
);
return
;
}
device
->
in_mmdev_bytes
+=
prebuf_frames
*
device
->
pwfx
->
nBlockAlign
;
}
TRACE
(
"in_mmdev_bytes now = %i
\n
"
,
device
->
in_mmdev_bytes
);
...
...
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