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
f83c4708
Commit
f83c4708
authored
Sep 22, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Remove casts to the type of the casted expression.
parent
55267795
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
waveform.c
dlls/winmm/waveform.c
+7
-9
No files found.
dlls/winmm/waveform.c
View file @
f83c4708
...
...
@@ -625,7 +625,7 @@ static MMRESULT WINMM_TryDeviceMapping(WINMM_OpenInfo *info, WORD channels,
if
(
mr
!=
MMSYSERR_NOERROR
)
return
WAVERR_BADFORMAT
;
device
=
WINMM_GetDeviceFromHWAVE
(
(
HWAVE
)
info
->
handle
);
device
=
WINMM_GetDeviceFromHWAVE
(
info
->
handle
);
if
(
!
device
)
return
MMSYSERR_INVALHANDLE
;
...
...
@@ -917,7 +917,7 @@ static LRESULT WINMM_OpenDevice(WINMM_Device *device, WINMM_MMDevice *mmdevice,
device
->
cb_info
.
flags
=
HIWORD
(
info
->
flags
&
CALLBACK_TYPEMASK
);
device
->
cb_info
.
callback
=
info
->
callback
;
device
->
cb_info
.
user
=
info
->
cb_user
;
device
->
cb_info
.
hwave
=
(
HWAVE
)
device
->
handle
;
device
->
cb_info
.
hwave
=
device
->
handle
;
info
->
handle
=
device
->
handle
;
...
...
@@ -1645,7 +1645,7 @@ static HRESULT WINMM_BeginPlaying(WINMM_Device *device)
static
LRESULT
WINMM_Pause
(
HWAVE
hwave
)
{
WINMM_Device
*
device
=
WINMM_GetDeviceFromHWAVE
(
(
HWAVE
)
hwave
);
WINMM_Device
*
device
=
WINMM_GetDeviceFromHWAVE
(
hwave
);
HRESULT
hr
;
TRACE
(
"(%p)
\n
"
,
hwave
);
...
...
@@ -1670,7 +1670,7 @@ static LRESULT WINMM_Pause(HWAVE hwave)
static
LRESULT
WINMM_Reset
(
HWAVE
hwave
)
{
WINMM_CBInfo
cb_info
;
WINMM_Device
*
device
=
WINMM_GetDeviceFromHWAVE
(
(
HWAVE
)
hwave
);
WINMM_Device
*
device
=
WINMM_GetDeviceFromHWAVE
(
hwave
);
WAVEHDR
*
first
;
MMRESULT
mr
;
...
...
@@ -1752,7 +1752,7 @@ static MMRESULT WINMM_FramesToMMTime(MMTIME *time, UINT32 played_frames,
static
LRESULT
WINMM_GetPosition
(
HWAVE
hwave
,
MMTIME
*
time
)
{
WINMM_Device
*
device
=
WINMM_GetDeviceFromHWAVE
(
(
HWAVE
)
hwave
);
WINMM_Device
*
device
=
WINMM_GetDeviceFromHWAVE
(
hwave
);
UINT32
played_frames
,
sample_rate
,
bytes_per_frame
;
TRACE
(
"(%p, %p)
\n
"
,
hwave
,
time
);
...
...
@@ -2823,8 +2823,7 @@ UINT WINAPI waveOutMessage(HWAVEOUT hWaveOut, UINT uMessage,
return
WINMM_QueryInstanceIDSize
(
HandleToULong
(
hWaveOut
),
(
DWORD_PTR
*
)
dwParam1
,
TRUE
);
case
DRV_QUERYFUNCTIONINSTANCEID
:
return
WINMM_QueryInstanceID
(
HandleToULong
(
hWaveOut
),
(
WCHAR
*
)
dwParam1
,
(
DWORD_PTR
)
dwParam2
,
TRUE
);
return
WINMM_QueryInstanceID
(
HandleToULong
(
hWaveOut
),
(
WCHAR
*
)
dwParam1
,
dwParam2
,
TRUE
);
/* TODO: Remove after dsound has been rewritten for mmdevapi */
case
DRV_QUERYDSOUNDDESC
:
case
DRV_QUERYDSOUNDIFACE
:
...
...
@@ -3203,8 +3202,7 @@ UINT WINAPI waveInMessage(HWAVEIN hWaveIn, UINT uMessage,
return
WINMM_QueryInstanceIDSize
(
HandleToULong
(
hWaveIn
),
(
DWORD_PTR
*
)
dwParam1
,
FALSE
);
case
DRV_QUERYFUNCTIONINSTANCEID
:
return
WINMM_QueryInstanceID
(
HandleToULong
(
hWaveIn
),
(
WCHAR
*
)
dwParam1
,
(
DWORD_PTR
)
dwParam2
,
FALSE
);
return
WINMM_QueryInstanceID
(
HandleToULong
(
hWaveIn
),
(
WCHAR
*
)
dwParam1
,
dwParam2
,
FALSE
);
/* TODO: Remove after dsound has been rewritten for mmdevapi */
case
DRV_QUERYDSOUNDDESC
:
case
DRV_QUERYDSOUNDIFACE
:
...
...
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