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
0ae74c2a
Commit
0ae74c2a
authored
Jan 28, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Use UlongToHandle to make the real payload a HWAVEIN/HWAVEOUT.
Fixes Win64 compiler warnings.
parent
7ab165a5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
capture.c
dlls/dsound/capture.c
+5
-5
dsound_main.c
dlls/dsound/dsound_main.c
+4
-4
propset.c
dlls/dsound/propset.c
+0
-0
No files found.
dlls/dsound/capture.c
View file @
0ae74c2a
...
...
@@ -289,7 +289,7 @@ DirectSoundCaptureEnumerateA(
if
(
GetDeviceID
(
&
DSDEVID_DefaultCapture
,
&
guid
)
==
DS_OK
)
{
for
(
wid
=
0
;
wid
<
devs
;
++
wid
)
{
if
(
IsEqualGUID
(
&
guid
,
&
DSOUND_capture_guids
[
wid
]
)
)
{
err
=
mmErr
(
waveInMessage
(
(
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveInMessage
(
UlongToHandle
(
wid
)
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Capture Driver"
,
desc
.
szDrvname
,
lpContext
);
...
...
@@ -302,7 +302,7 @@ DirectSoundCaptureEnumerateA(
}
for
(
wid
=
0
;
wid
<
devs
;
++
wid
)
{
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveInMessage
(
UlongToHandle
(
wid
)
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(%s,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
debugstr_guid
(
&
DSOUND_capture_guids
[
wid
]),
desc
.
szDesc
,
desc
.
szDrvname
,
lpContext
);
...
...
@@ -351,7 +351,7 @@ DirectSoundCaptureEnumerateW(
if
(
GetDeviceID
(
&
DSDEVID_DefaultCapture
,
&
guid
)
==
DS_OK
)
{
for
(
wid
=
0
;
wid
<
devs
;
++
wid
)
{
if
(
IsEqualGUID
(
&
guid
,
&
DSOUND_capture_guids
[
wid
]
)
)
{
err
=
mmErr
(
waveInMessage
(
(
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveInMessage
(
UlongToHandle
(
wid
)
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Capture Driver"
,
desc
.
szDrvname
,
lpContext
);
...
...
@@ -368,7 +368,7 @@ DirectSoundCaptureEnumerateW(
}
for
(
wid
=
0
;
wid
<
devs
;
++
wid
)
{
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveInMessage
(
UlongToHandle
(
wid
)
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(%s,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
debugstr_guid
(
&
DSOUND_capture_guids
[
wid
]),
desc
.
szDesc
,
desc
.
szDrvname
,
lpContext
);
...
...
@@ -1550,7 +1550,7 @@ HRESULT DirectSoundCaptureDevice_Initialize(
device
->
driver
=
NULL
;
if
(
ds_hw_accel
!=
DS_HW_ACCEL_EMULATION
)
{
err
=
mmErr
(
waveInMessage
(
(
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDIFACE
,(
DWORD_PTR
)
&
(
device
->
driver
)
,
0
));
err
=
mmErr
(
waveInMessage
(
UlongToHandle
(
wid
),
DRV_QUERYDSOUNDIFACE
,(
DWORD_PTR
)
&
device
->
driver
,
0
));
if
(
(
err
!=
DS_OK
)
&&
(
err
!=
DSERR_UNSUPPORTED
)
)
{
WARN
(
"waveInMessage failed; err=%x
\n
"
,
err
);
return
err
;
...
...
dlls/dsound/dsound_main.c
View file @
0ae74c2a
...
...
@@ -308,7 +308,7 @@ HRESULT WINAPI DirectSoundEnumerateA(
if
(
GetDeviceID
(
&
DSDEVID_DefaultPlayback
,
&
guid
)
==
DS_OK
)
{
for
(
wod
=
0
;
wod
<
devs
;
++
wod
)
{
if
(
IsEqualGUID
(
&
guid
,
&
DSOUND_renderer_guids
[
wod
])
)
{
err
=
mmErr
(
waveOutMessage
(
(
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveOutMessage
(
UlongToHandle
(
wod
)
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Driver"
,
""
,
lpContext
);
...
...
@@ -321,7 +321,7 @@ HRESULT WINAPI DirectSoundEnumerateA(
}
for
(
wod
=
0
;
wod
<
devs
;
++
wod
)
{
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveOutMessage
(
UlongToHandle
(
wod
)
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(%s,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
debugstr_guid
(
&
DSOUND_renderer_guids
[
wod
]),
desc
.
szDesc
,
desc
.
szDrvname
,
lpContext
);
...
...
@@ -370,7 +370,7 @@ HRESULT WINAPI DirectSoundEnumerateW(
static
const
WCHAR
empty
[]
=
{
0
};
for
(
wod
=
0
;
wod
<
devs
;
++
wod
)
{
if
(
IsEqualGUID
(
&
guid
,
&
DSOUND_renderer_guids
[
wod
]
)
)
{
err
=
mmErr
(
waveOutMessage
(
(
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveOutMessage
(
UlongToHandle
(
wod
)
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(NULL,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
"Primary Sound Driver"
,
desc
.
szDrvname
,
lpContext
);
...
...
@@ -385,7 +385,7 @@ HRESULT WINAPI DirectSoundEnumerateW(
}
for
(
wod
=
0
;
wod
<
devs
;
++
wod
)
{
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
err
=
mmErr
(
waveOutMessage
(
UlongToHandle
(
wod
)
,
DRV_QUERYDSOUNDDESC
,(
DWORD_PTR
)
&
desc
,
0
));
if
(
err
==
DS_OK
)
{
TRACE
(
"calling lpDSEnumCallback(%s,
\"
%s
\"
,
\"
%s
\"
,%p)
\n
"
,
debugstr_guid
(
&
DSOUND_renderer_guids
[
wod
]),
desc
.
szDesc
,
desc
.
szDrvname
,
lpContext
);
...
...
dlls/dsound/propset.c
View file @
0ae74c2a
This diff is collapsed.
Click to expand it.
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