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
afa57510
Commit
afa57510
authored
Sep 22, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Sep 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Separate WINMM_Pause and WINMM_Reset.
parent
38752f5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
waveform.c
dlls/winmm/waveform.c
+6
-4
No files found.
dlls/winmm/waveform.c
View file @
afa57510
...
...
@@ -1671,17 +1671,18 @@ static LRESULT WINMM_Reset(HWAVE hwave)
WINMM_CBInfo
cb_info
;
WINMM_Device
*
device
=
WINMM_GetDeviceFromHWAVE
(
hwave
);
WAVEHDR
*
first
;
MMRESULT
m
r
;
HRESULT
h
r
;
TRACE
(
"(%p)
\n
"
,
hwave
);
if
(
!
WINMM_ValidateAndLock
(
device
))
return
MMSYSERR_INVALHANDLE
;
mr
=
WINMM_Pause
(
hwave
);
if
(
mr
!=
MMSYSERR_NOERROR
){
hr
=
IAudioClient_Stop
(
device
->
client
);
if
(
FAILED
(
hr
)
){
LeaveCriticalSection
(
&
device
->
lock
);
return
mr
;
ERR
(
"Stop failed: %08x
\n
"
,
hr
);
return
MMSYSERR_ERROR
;
}
device
->
stopped
=
TRUE
;
...
...
@@ -1694,6 +1695,7 @@ static LRESULT WINMM_Reset(HWAVE hwave)
device
->
played_frames
=
0
;
device
->
loop_counter
=
0
;
device
->
last_clock_pos
=
0
;
IAudioClient_Reset
(
device
->
client
);
cb_info
=
device
->
cb_info
;
...
...
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