Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6086c7be
Commit
6086c7be
authored
Jan 10, 2012
by
Jörg Höhle
Committed by
Alexandre Julliard
Nov 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Prefer using MMSYSERR_* over AUDCLNT_E_* from mmdevapi.
parent
23cbfff4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
25 deletions
+12
-25
waveform.c
dlls/winmm/waveform.c
+12
-25
No files found.
dlls/winmm/waveform.c
View file @
6086c7be
...
...
@@ -1702,7 +1702,7 @@ exit:
}
}
static
H
RESULT
WINMM_BeginPlaying
(
WINMM_Device
*
device
)
static
MM
RESULT
WINMM_BeginPlaying
(
WINMM_Device
*
device
)
{
HRESULT
hr
;
...
...
@@ -1719,11 +1719,11 @@ static HRESULT WINMM_BeginPlaying(WINMM_Device *device)
if
(
FAILED
(
hr
)
&&
hr
!=
AUDCLNT_E_NOT_STOPPED
){
device
->
stopped
=
TRUE
;
WARN
(
"Start failed: %08x
\n
"
,
hr
);
return
hr
;
return
MMSYSERR_ERROR
;
}
}
return
S_OK
;
return
MMSYSERR_NOERROR
;
}
static
LRESULT
WINMM_Pause
(
HWAVE
hwave
)
...
...
@@ -2577,7 +2577,7 @@ UINT WINAPI waveOutUnprepareHeader(HWAVEOUT hWaveOut,
UINT
WINAPI
waveOutWrite
(
HWAVEOUT
hWaveOut
,
WAVEHDR
*
header
,
UINT
uSize
)
{
WINMM_Device
*
device
;
HRESULT
h
r
;
MMRESULT
m
r
;
TRACE
(
"(%p, %p, %u)
\n
"
,
hWaveOut
,
header
,
uSize
);
...
...
@@ -2598,7 +2598,6 @@ UINT WINAPI waveOutWrite(HWAVEOUT hWaveOut, WAVEHDR *header, UINT uSize)
if
(
device
->
acm_handle
){
ACMSTREAMHEADER
*
ash
=
(
ACMSTREAMHEADER
*
)
header
->
reserved
;
MMRESULT
mr
;
ash
->
cbSrcLength
=
header
->
dwBufferLength
;
mr
=
acmStreamConvert
(
device
->
acm_handle
,
ash
,
0
);
...
...
@@ -2625,15 +2624,11 @@ UINT WINAPI waveOutWrite(HWAVEOUT hWaveOut, WAVEHDR *header, UINT uSize)
header
->
dwFlags
&=
~
WHDR_DONE
;
header
->
dwFlags
|=
WHDR_INQUEUE
;
hr
=
WINMM_BeginPlaying
(
device
);
if
(
FAILED
(
hr
)){
LeaveCriticalSection
(
&
device
->
lock
);
return
MMSYSERR_ERROR
;
}
mr
=
WINMM_BeginPlaying
(
device
);
LeaveCriticalSection
(
&
device
->
lock
);
return
MMSYSERR_NOERROR
;
return
mr
;
}
/**************************************************************************
...
...
@@ -2683,7 +2678,7 @@ UINT WINAPI waveOutReset(HWAVEOUT hWaveOut)
UINT
WINAPI
waveOutRestart
(
HWAVEOUT
hWaveOut
)
{
WINMM_Device
*
device
;
HRESULT
h
r
;
MMRESULT
m
r
;
TRACE
(
"(%p)
\n
"
,
hWaveOut
);
...
...
@@ -2694,15 +2689,11 @@ UINT WINAPI waveOutRestart(HWAVEOUT hWaveOut)
device
->
stopped
=
TRUE
;
hr
=
WINMM_BeginPlaying
(
device
);
if
(
FAILED
(
hr
)){
LeaveCriticalSection
(
&
device
->
lock
);
return
MMSYSERR_ERROR
;
}
mr
=
WINMM_BeginPlaying
(
device
);
LeaveCriticalSection
(
&
device
->
lock
);
return
MMSYSERR_NOERROR
;
return
mr
;
}
/**************************************************************************
...
...
@@ -3255,7 +3246,7 @@ UINT WINAPI waveInReset(HWAVEIN hWaveIn)
UINT
WINAPI
waveInStart
(
HWAVEIN
hWaveIn
)
{
WINMM_Device
*
device
;
HRESULT
h
r
;
MMRESULT
m
r
;
TRACE
(
"(%p)
\n
"
,
hWaveIn
);
...
...
@@ -3264,15 +3255,11 @@ UINT WINAPI waveInStart(HWAVEIN hWaveIn)
if
(
!
WINMM_ValidateAndLock
(
device
))
return
MMSYSERR_INVALHANDLE
;
hr
=
WINMM_BeginPlaying
(
device
);
if
(
FAILED
(
hr
)){
LeaveCriticalSection
(
&
device
->
lock
);
return
MMSYSERR_ERROR
;
}
mr
=
WINMM_BeginPlaying
(
device
);
LeaveCriticalSection
(
&
device
->
lock
);
return
MMSYSERR_NOERROR
;
return
mr
;
}
/**************************************************************************
...
...
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