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
bf466578
Commit
bf466578
authored
Oct 17, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Pause/resume is not accepted from every state.
parent
b55641f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
12 deletions
+30
-12
mciwave.c
dlls/mciwave/mciwave.c
+30
-12
No files found.
dlls/mciwave/mciwave.c
View file @
bf466578
...
...
@@ -1130,16 +1130,23 @@ static DWORD WAVE_mciPause(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_GENERIC_PARM
TRACE
(
"(%u, %08X, %p);
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
if
(
lpParms
==
NULL
)
return
MCIERR_NULL_PARAMETER_BLOCK
;
if
(
wmw
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
wmw
->
dwStatus
==
MCI_MODE_PLAY
)
{
switch
(
wmw
->
dwStatus
)
{
case
MCI_MODE_PLAY
:
wmw
->
dwStatus
=
MCI_MODE_PAUSE
;
dwRet
=
waveOutPause
(
wmw
->
hWave
);
break
;
case
MCI_MODE_RECORD
:
wmw
->
dwStatus
=
MCI_MODE_PAUSE
;
dwRet
=
waveInStop
(
wmw
->
hWave
);
break
;
case
MCI_MODE_PAUSE
:
dwRet
=
MMSYSERR_NOERROR
;
break
;
default:
return
MCIERR_NONAPPLICABLE_FUNCTION
;
}
if
(
wmw
->
fInput
)
dwRet
=
waveInStop
(
wmw
->
hWave
);
else
dwRet
=
waveOutPause
(
wmw
->
hWave
);
return
(
dwRet
==
MMSYSERR_NOERROR
)
?
0
:
MCIERR_INTERNAL
;
}
...
...
@@ -1149,18 +1156,29 @@ static DWORD WAVE_mciPause(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_GENERIC_PARM
static
DWORD
WAVE_mciResume
(
MCIDEVICEID
wDevID
,
DWORD
dwFlags
,
LPMCI_GENERIC_PARMS
lpParms
)
{
WINE_MCIWAVE
*
wmw
=
WAVE_mciGetOpenDev
(
wDevID
);
DWORD
dwRet
=
0
;
DWORD
dwRet
;
TRACE
(
"(%u, %08X, %p);
\n
"
,
wDevID
,
dwFlags
,
lpParms
);
if
(
wmw
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
wmw
->
dwStatus
==
MCI_MODE_PAUSE
)
{
wmw
->
dwStatus
=
MCI_MODE_PLAY
;
switch
(
wmw
->
dwStatus
)
{
case
MCI_MODE_PAUSE
:
if
(
wmw
->
fInput
)
{
wmw
->
dwStatus
=
MCI_MODE_RECORD
;
dwRet
=
waveInStart
(
wmw
->
hWave
);
}
else
{
wmw
->
dwStatus
=
MCI_MODE_PLAY
;
dwRet
=
waveOutRestart
(
wmw
->
hWave
);
}
break
;
case
MCI_MODE_PLAY
:
case
MCI_MODE_RECORD
:
dwRet
=
MMSYSERR_NOERROR
;
break
;
default:
return
MCIERR_NONAPPLICABLE_FUNCTION
;
}
if
(
wmw
->
fInput
)
dwRet
=
waveInStart
(
wmw
->
hWave
);
else
dwRet
=
waveOutRestart
(
wmw
->
hWave
);
return
(
dwRet
==
MMSYSERR_NOERROR
)
?
0
:
MCIERR_INTERNAL
;
}
...
...
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