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
aea94788
Commit
aea94788
authored
Jan 23, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Remove superfluous pointer casts.
parent
c83b4e23
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
18 deletions
+17
-18
dscapture.c
dlls/winealsa.drv/dscapture.c
+2
-2
midi.c
dlls/winealsa.drv/midi.c
+6
-7
mixer.c
dlls/winealsa.drv/mixer.c
+7
-7
wavein.c
dlls/winealsa.drv/wavein.c
+1
-1
waveout.c
dlls/winealsa.drv/waveout.c
+1
-1
No files found.
dlls/winealsa.drv/dscapture.c
View file @
aea94788
...
...
@@ -477,7 +477,7 @@ static HRESULT WINAPI IDsCaptureDriverBufferImpl_QueryInterface(PIDSCDRIVERBUFFE
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDsCaptureDriverBuffer
)
)
{
IDsCaptureDriverBuffer_AddRef
(
iface
);
*
ppobj
=
(
LPVOID
)
iface
;
*
ppobj
=
iface
;
return
DS_OK
;
}
...
...
@@ -494,7 +494,7 @@ static HRESULT WINAPI IDsCaptureDriverBufferImpl_QueryInterface(PIDSCDRIVERBUFFE
IDsDriverNotify_AddRef
((
PIDSDRIVERNOTIFY
)
This
->
notify
);
}
IDsDriverNotify_AddRef
((
PIDSDRIVERNOTIFY
)
This
->
notify
);
*
ppobj
=
(
LPVOID
)
This
->
notify
;
*
ppobj
=
This
->
notify
;
return
DS_OK
;
}
...
...
dlls/winealsa.drv/midi.c
View file @
aea94788
...
...
@@ -376,7 +376,7 @@ static DWORD WINAPI midRecThread(LPVOID arg)
{
int
pos
=
0
;
int
len
=
ev
->
data
.
ext
.
len
;
LPBYTE
ptr
=
(
BYTE
*
)
ev
->
data
.
ext
.
ptr
;
LPBYTE
ptr
=
ev
->
data
.
ext
.
ptr
;
LPMIDIHDR
lpMidiHdr
;
EnterCriticalSection
(
&
crit_sect
);
...
...
@@ -393,7 +393,7 @@ static DWORD WINAPI midRecThread(LPVOID arg)
(
*
(
BYTE
*
)(
lpMidiHdr
->
lpData
+
lpMidiHdr
->
dwBytesRecorded
-
1
)
==
0xF7
))
{
lpMidiHdr
->
dwFlags
&=
~
MHDR_INQUEUE
;
lpMidiHdr
->
dwFlags
|=
MHDR_DONE
;
MidiInDev
[
wDevID
].
lpQueueHdr
=
(
LPMIDIHDR
)
lpMidiHdr
->
lpNext
;
MidiInDev
[
wDevID
].
lpQueueHdr
=
lpMidiHdr
->
lpNext
;
if
(
MIDI_NotifyClient
(
wDevID
,
MIM_LONGDATA
,
(
DWORD_PTR
)
lpMidiHdr
,
dwTime
)
!=
MMSYSERR_NOERROR
)
WARN
(
"Couldn't notify client
\n
"
);
}
...
...
@@ -594,10 +594,9 @@ static DWORD midAddBuffer(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
}
else
{
LPMIDIHDR
ptr
;
for
(
ptr
=
MidiInDev
[
wDevID
].
lpQueueHdr
;
ptr
->
lpNext
!=
0
;
ptr
=
(
LPMIDIHDR
)
ptr
->
lpNext
);
ptr
->
lpNext
=
(
struct
midihdr_tag
*
)
lpMidiHdr
;
for
(
ptr
=
MidiInDev
[
wDevID
].
lpQueueHdr
;
ptr
->
lpNext
!=
0
;
ptr
=
ptr
->
lpNext
);
ptr
->
lpNext
=
lpMidiHdr
;
}
LeaveCriticalSection
(
&
crit_sect
);
...
...
@@ -666,7 +665,7 @@ static DWORD midReset(WORD wDevID)
(
DWORD_PTR
)
MidiInDev
[
wDevID
].
lpQueueHdr
,
dwTime
)
!=
MMSYSERR_NOERROR
)
{
WARN
(
"Couldn't notify client
\n
"
);
}
MidiInDev
[
wDevID
].
lpQueueHdr
=
(
LPMIDIHDR
)
MidiInDev
[
wDevID
].
lpQueueHdr
->
lpNext
;
MidiInDev
[
wDevID
].
lpQueueHdr
=
MidiInDev
[
wDevID
].
lpQueueHdr
->
lpNext
;
}
LeaveCriticalSection
(
&
crit_sect
);
...
...
dlls/winealsa.drv/mixer.c
View file @
aea94788
...
...
@@ -915,7 +915,7 @@ static DWORD MIX_GetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
TRACE
(
"%s MIXERCONTROLDETAILS_UNSIGNED[%u]
\n
"
,
getControlType
(
ct
->
c
.
dwControlType
),
mctrld
->
cChannels
);
mcdu
=
(
LPMIXERCONTROLDETAILS_UNSIGNED
)
mctrld
->
paDetails
;
mcdu
=
mctrld
->
paDetails
;
if
(
mctrld
->
cChannels
!=
1
&&
mmixer
->
lines
[
line
].
chans
!=
mctrld
->
cChannels
)
{
...
...
@@ -966,7 +966,7 @@ static DWORD MIX_GetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
TRACE
(
"%s MIXERCONTROLDETAILS_BOOLEAN[%u]
\n
"
,
getControlType
(
ct
->
c
.
dwControlType
),
mctrld
->
cChannels
);
mcdb
=
(
LPMIXERCONTROLDETAILS_BOOLEAN
)
mctrld
->
paDetails
;
mcdb
=
mctrld
->
paDetails
;
if
(
line
==
1
)
for
(
chn
=
0
;
chn
<=
SND_MIXER_SCHN_LAST
;
++
chn
)
...
...
@@ -1009,7 +1009,7 @@ static DWORD MIX_GetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
TRACE
(
"%s MIXERCONTROLDETAILS_BOOLEAN[%u]
\n
"
,
getControlType
(
ct
->
c
.
dwControlType
),
mctrld
->
cChannels
);
mcdb
=
(
LPMIXERCONTROLDETAILS_BOOLEAN
)
mctrld
->
paDetails
;
mcdb
=
mctrld
->
paDetails
;
for
(
x
=
0
;
x
<
mmixer
->
chans
;
++
x
)
if
(
line
!=
x
&&
mmixer
->
lines
[
x
].
dst
==
line
)
...
...
@@ -1045,7 +1045,7 @@ static DWORD MIX_GetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
if
(
ct
->
c
.
dwControlType
==
MIXERCONTROL_CONTROLTYPE_MUX
||
ct
->
c
.
dwControlType
==
MIXERCONTROL_CONTROLTYPE_MIXER
)
{
LPMIXERCONTROLDETAILS_LISTTEXTW
mcdlt
=
(
LPMIXERCONTROLDETAILS_LISTTEXTW
)
mctrld
->
paDetails
;
LPMIXERCONTROLDETAILS_LISTTEXTW
mcdlt
=
mctrld
->
paDetails
;
int
i
,
j
;
for
(
i
=
j
=
0
;
j
<
mmixer
->
chans
;
++
j
)
...
...
@@ -1143,7 +1143,7 @@ static DWORD MIX_SetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
}
TRACE
(
"%s MIXERCONTROLDETAILS_UNSIGNED[%u]
\n
"
,
getControlType
(
ct
->
c
.
dwControlType
),
mctrld
->
cChannels
);
mcdu
=
(
LPMIXERCONTROLDETAILS_UNSIGNED
)
mctrld
->
paDetails
;
mcdu
=
mctrld
->
paDetails
;
for
(
chn
=
0
;
chn
<
mctrld
->
cChannels
;
++
chn
)
{
...
...
@@ -1191,7 +1191,7 @@ static DWORD MIX_SetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
TRACE
(
"%s MIXERCONTROLDETAILS_BOOLEAN[%u]
\n
"
,
getControlType
(
ct
->
c
.
dwControlType
),
mctrld
->
cChannels
);
mcdb
=
(
LPMIXERCONTROLDETAILS_BOOLEAN
)
mctrld
->
paDetails
;
mcdb
=
mctrld
->
paDetails
;
if
(
line
==
1
)
/* Mute/unmute capturing */
for
(
i
=
0
;
i
<=
SND_MIXER_SCHN_LAST
;
++
i
)
{
...
...
@@ -1219,7 +1219,7 @@ static DWORD MIX_SetControlDetails(UINT wDevID, LPMIXERCONTROLDETAILS mctrld, DW
}
TRACE
(
"%s MIXERCONTROLDETAILS_BOOLEAN[%u]
\n
"
,
getControlType
(
ct
->
c
.
dwControlType
),
mctrld
->
cChannels
);
mcdb
=
(
LPMIXERCONTROLDETAILS_BOOLEAN
)
mctrld
->
paDetails
;
mcdb
=
mctrld
->
paDetails
;
for
(
x
=
i
=
0
;
x
<
mmixer
->
chans
;
++
x
)
if
(
line
!=
x
&&
mmixer
->
lines
[
x
].
dst
==
line
)
...
...
dlls/winealsa.drv/wavein.c
View file @
aea94788
...
...
@@ -142,7 +142,7 @@ static void widRecorder_ReadHeaders(WINE_WAVEDEV * wwi)
static
DWORD
CALLBACK
widRecorder
(
LPVOID
pmt
)
{
WORD
uDevID
=
(
DWORD_PTR
)
pmt
;
WINE_WAVEDEV
*
wwi
=
(
WINE_WAVEDEV
*
)
&
WInDev
[
uDevID
];
WINE_WAVEDEV
*
wwi
=
&
WInDev
[
uDevID
];
WAVEHDR
*
lpWaveHdr
;
DWORD
dwSleepTime
;
DWORD
bytesRead
;
...
...
dlls/winealsa.drv/waveout.c
View file @
aea94788
...
...
@@ -521,7 +521,7 @@ static DWORD wodPlayer_FeedDSP(WINE_WAVEDEV* wwo)
static
DWORD
CALLBACK
wodPlayer
(
LPVOID
pmt
)
{
WORD
uDevID
=
(
DWORD_PTR
)
pmt
;
WINE_WAVEDEV
*
wwo
=
(
WINE_WAVEDEV
*
)
&
WOutDev
[
uDevID
];
WINE_WAVEDEV
*
wwo
=
&
WOutDev
[
uDevID
];
DWORD
dwNextFeedTime
=
INFINITE
;
/* Time before DSP needs feeding */
DWORD
dwNextNotifyTime
=
INFINITE
;
/* Time before next wave completion */
DWORD
dwSleepTime
;
...
...
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