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
3c6496d7
Commit
3c6496d7
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: Do not lie about state when winmm fails in Pause or Resume.
parent
bf466578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
mciwave.c
dlls/mciwave/mciwave.c
+25
-8
No files found.
dlls/mciwave/mciwave.c
View file @
3c6496d7
...
...
@@ -1134,20 +1134,28 @@ static DWORD WAVE_mciPause(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_GENERIC_PARM
switch
(
wmw
->
dwStatus
)
{
case
MCI_MODE_PLAY
:
wmw
->
dwStatus
=
MCI_MODE_PAUSE
;
dwRet
=
waveOutPause
(
wmw
->
hWave
);
if
(
dwRet
==
MMSYSERR_NOERROR
)
wmw
->
dwStatus
=
MCI_MODE_PAUSE
;
else
{
/* When playthread was not started yet, winmm not opened, error 5 MMSYSERR_INVALHANDLE */
ERR
(
"waveOutPause error %d
\n
"
,
dwRet
);
dwRet
=
MCIERR_INTERNAL
;
}
break
;
case
MCI_MODE_RECORD
:
wmw
->
dwStatus
=
MCI_MODE_PAUSE
;
dwRet
=
waveInStop
(
wmw
->
hWave
);
if
(
dwRet
==
MMSYSERR_NOERROR
)
wmw
->
dwStatus
=
MCI_MODE_PAUSE
;
else
{
ERR
(
"waveInStop error %d
\n
"
,
dwRet
);
dwRet
=
MCIERR_INTERNAL
;
}
break
;
case
MCI_MODE_PAUSE
:
dwRet
=
MMSYSERR_NOERROR
;
break
;
default:
return
MCIERR_NONAPPLICABLE_FUNCTION
;
dwRet
=
MCIERR_NONAPPLICABLE_FUNCTION
;
}
return
(
dwRet
==
MMSYSERR_NOERROR
)
?
0
:
MCIERR_INTERNAL
;
return
dwRet
;
}
/**************************************************************************
...
...
@@ -1164,12 +1172,21 @@ static DWORD WAVE_mciResume(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_GENERIC_PAR
switch
(
wmw
->
dwStatus
)
{
case
MCI_MODE_PAUSE
:
/* Only update dwStatus if wave* succeeds and will exchange buffers buffers. */
if
(
wmw
->
fInput
)
{
wmw
->
dwStatus
=
MCI_MODE_RECORD
;
dwRet
=
waveInStart
(
wmw
->
hWave
);
if
(
dwRet
==
MMSYSERR_NOERROR
)
wmw
->
dwStatus
=
MCI_MODE_RECORD
;
else
{
ERR
(
"waveInStart error %d
\n
"
,
dwRet
);
dwRet
=
MCIERR_INTERNAL
;
}
}
else
{
wmw
->
dwStatus
=
MCI_MODE_PLAY
;
dwRet
=
waveOutRestart
(
wmw
->
hWave
);
if
(
dwRet
==
MMSYSERR_NOERROR
)
wmw
->
dwStatus
=
MCI_MODE_PLAY
;
else
{
ERR
(
"waveOutRestart error %d
\n
"
,
dwRet
);
dwRet
=
MCIERR_INTERNAL
;
}
}
break
;
case
MCI_MODE_PLAY
:
...
...
@@ -1177,9 +1194,9 @@ static DWORD WAVE_mciResume(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_GENERIC_PAR
dwRet
=
MMSYSERR_NOERROR
;
break
;
default:
return
MCIERR_NONAPPLICABLE_FUNCTION
;
dwRet
=
MCIERR_NONAPPLICABLE_FUNCTION
;
}
return
(
dwRet
==
MMSYSERR_NOERROR
)
?
0
:
MCIERR_INTERNAL
;
return
dwRet
;
}
/**************************************************************************
...
...
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