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
48da1d52
Commit
48da1d52
authored
Jun 01, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Jun 01, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix property set description for more than one capture device bug.
Add better traces messages.
parent
b67da5b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
9 deletions
+26
-9
propset.c
dlls/dsound/propset.c
+26
-9
No files found.
dlls/dsound/propset.c
View file @
48da1d52
...
@@ -609,7 +609,10 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
...
@@ -609,7 +609,10 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultVoicePlayback
)
)
{
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultVoicePlayback
)
)
{
ULONG
wod
;
ULONG
wod
;
unsigned
int
wodn
;
unsigned
int
wodn
;
TRACE
(
"DataFlow=DIRECTSOUNDDEVICE_DATAFLOW_RENDER
\n
"
);
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultPlayback
)
)
TRACE
(
"DSDEVID_DefaultPlayback
\n
"
);
else
TRACE
(
"DSDEVID_DefaultVoicePlayback
\n
"
);
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_RENDER
;
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_RENDER
;
wodn
=
waveOutGetNumDevs
();
wodn
=
waveOutGetNumDevs
();
for
(
wod
=
0
;
wod
<
wodn
;
wod
++
)
{
for
(
wod
=
0
;
wod
<
wodn
;
wod
++
)
{
...
@@ -655,7 +658,10 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
...
@@ -655,7 +658,10 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultVoiceCapture
)
)
{
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultVoiceCapture
)
)
{
ULONG
wid
;
ULONG
wid
;
unsigned
int
widn
;
unsigned
int
widn
;
TRACE
(
"DataFlow=DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
\n
"
);
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultCapture
)
)
TRACE
(
"DSDEVID_DefaultCapture
\n
"
);
else
TRACE
(
"DSDEVID_DefaultVoiceCapture
\n
"
);
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
;
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
;
widn
=
waveInGetNumDevs
();
widn
=
waveInGetNumDevs
();
for
(
wid
=
0
;
wid
<
widn
;
wid
++
)
{
for
(
wid
=
0
;
wid
<
widn
;
wid
++
)
{
...
@@ -702,11 +708,12 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
...
@@ -702,11 +708,12 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
ULONG
wod
;
ULONG
wod
;
unsigned
int
wodn
;
unsigned
int
wodn
;
/* given specific device so try the render devices first */
/* given specific device so try the render devices first */
TRACE
(
"Checking renderer devices
\n
"
);
wodn
=
waveOutGetNumDevs
();
wodn
=
waveOutGetNumDevs
();
for
(
wod
=
0
;
wod
<
wodn
;
wod
++
)
{
for
(
wod
=
0
;
wod
<
wodn
;
wod
++
)
{
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSOUND_renderer_guids
[
wod
]
)
)
{
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSOUND_renderer_guids
[
wod
]
)
)
{
DSDRIVERDESC
desc
;
DSDRIVERDESC
desc
;
TRACE
(
"D
ataFlow=DIRECTSOUNDDEVICE_DATAFLOW_RENDER
\n
"
);
TRACE
(
"D
SOUND_renderer_guids[%ld]
\n
"
,
wod
);
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_RENDER
;
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_RENDER
;
ppd
->
WaveDeviceId
=
wod
;
ppd
->
WaveDeviceId
=
wod
;
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
...
@@ -749,12 +756,13 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
...
@@ -749,12 +756,13 @@ static HRESULT WINAPI DSPROPERTY_DescriptionA(
if
(
found
==
FALSE
)
{
if
(
found
==
FALSE
)
{
ULONG
wid
;
ULONG
wid
;
unsigned
int
widn
;
unsigned
int
widn
;
TRACE
(
"
DataFlow=DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
\n
"
);
TRACE
(
"
Checking capture devices
\n
"
);
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
;
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
;
widn
=
waveInGetNumDevs
();
widn
=
waveInGetNumDevs
();
for
(
wid
=
0
;
wid
<
widn
;
wid
++
)
{
for
(
wid
=
0
;
wid
<
widn
;
wid
++
)
{
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSOUND_capture_guids
[
w
o
d
]
)
)
{
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSOUND_capture_guids
[
w
i
d
]
)
)
{
DSDRIVERDESC
desc
;
DSDRIVERDESC
desc
;
TRACE
(
"DSOUND_capture_guids[%ld]
\n
"
,
wid
);
ppd
->
WaveDeviceId
=
wid
;
ppd
->
WaveDeviceId
=
wid
;
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
if
(
err
==
DS_OK
)
{
if
(
err
==
DS_OK
)
{
...
@@ -842,12 +850,16 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
...
@@ -842,12 +850,16 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultVoicePlayback
)
)
{
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultVoicePlayback
)
)
{
ULONG
wod
;
ULONG
wod
;
unsigned
int
wodn
;
unsigned
int
wodn
;
TRACE
(
"DataFlow=DIRECTSOUNDDEVICE_DATAFLOW_RENDER
\n
"
);
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultPlayback
)
)
TRACE
(
"DSDEVID_DefaultPlayback
\n
"
);
else
TRACE
(
"DSDEVID_DefaultVoicePlayback
\n
"
);
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_RENDER
;
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_RENDER
;
wodn
=
waveOutGetNumDevs
();
wodn
=
waveOutGetNumDevs
();
for
(
wod
=
0
;
wod
<
wodn
;
wod
++
)
{
for
(
wod
=
0
;
wod
<
wodn
;
wod
++
)
{
if
(
IsEqualGUID
(
&
dev_guid
,
&
DSOUND_renderer_guids
[
wod
]
)
)
{
if
(
IsEqualGUID
(
&
dev_guid
,
&
DSOUND_renderer_guids
[
wod
]
)
)
{
DSDRIVERDESC
desc
;
DSDRIVERDESC
desc
;
TRACE
(
"DSOUND_renderer_guids[%ld]
\n
"
,
wod
);
ppd
->
WaveDeviceId
=
wod
;
ppd
->
WaveDeviceId
=
wod
;
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
if
(
err
==
DS_OK
)
{
if
(
err
==
DS_OK
)
{
...
@@ -888,7 +900,10 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
...
@@ -888,7 +900,10 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultVoiceCapture
)
)
{
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultVoiceCapture
)
)
{
ULONG
wid
;
ULONG
wid
;
unsigned
int
widn
;
unsigned
int
widn
;
TRACE
(
"DataFlow=DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
\n
"
);
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSDEVID_DefaultCapture
))
TRACE
(
"DSDEVID_DefaultCapture
\n
"
);
else
TRACE
(
"DSDEVID_DefaultVoiceCapture
\n
"
);
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
;
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
;
widn
=
waveInGetNumDevs
();
widn
=
waveInGetNumDevs
();
for
(
wid
=
0
;
wid
<
widn
;
wid
++
)
{
for
(
wid
=
0
;
wid
<
widn
;
wid
++
)
{
...
@@ -934,12 +949,13 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
...
@@ -934,12 +949,13 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
BOOL
found
=
FALSE
;
BOOL
found
=
FALSE
;
ULONG
wod
;
ULONG
wod
;
unsigned
int
wodn
;
unsigned
int
wodn
;
TRACE
(
"Checking renderer devices
\n
"
);
/* given specific device so try the render devices first */
/* given specific device so try the render devices first */
wodn
=
waveOutGetNumDevs
();
wodn
=
waveOutGetNumDevs
();
for
(
wod
=
0
;
wod
<
wodn
;
wod
++
)
{
for
(
wod
=
0
;
wod
<
wodn
;
wod
++
)
{
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSOUND_renderer_guids
[
wod
]
)
)
{
if
(
IsEqualGUID
(
&
ppd
->
DeviceId
,
&
DSOUND_renderer_guids
[
wod
]
)
)
{
DSDRIVERDESC
desc
;
DSDRIVERDESC
desc
;
TRACE
(
"D
ataFlow=DIRECTSOUNDDEVICE_DATAFLOW_RENDER
\n
"
);
TRACE
(
"D
SOUND_renderer_guids[%ld]
\n
"
,
wod
);
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_RENDER
;
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_RENDER
;
ppd
->
WaveDeviceId
=
wod
;
ppd
->
WaveDeviceId
=
wod
;
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
err
=
mmErr
(
waveOutMessage
((
HWAVEOUT
)
wod
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
...
@@ -982,12 +998,13 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
...
@@ -982,12 +998,13 @@ static HRESULT WINAPI DSPROPERTY_DescriptionW(
if
(
found
==
FALSE
)
{
if
(
found
==
FALSE
)
{
ULONG
wid
;
ULONG
wid
;
unsigned
int
widn
;
unsigned
int
widn
;
TRACE
(
"
DataFlow=DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
\n
"
);
TRACE
(
"
Checking capture devices
\n
"
);
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
;
ppd
->
DataFlow
=
DIRECTSOUNDDEVICE_DATAFLOW_CAPTURE
;
widn
=
waveInGetNumDevs
();
widn
=
waveInGetNumDevs
();
for
(
wid
=
0
;
wid
<
widn
;
wid
++
)
{
for
(
wid
=
0
;
wid
<
widn
;
wid
++
)
{
if
(
IsEqualGUID
(
&
dev_guid
,
&
DSOUND_capture_guids
[
wid
]
)
)
{
if
(
IsEqualGUID
(
&
dev_guid
,
&
DSOUND_capture_guids
[
wid
]
)
)
{
DSDRIVERDESC
desc
;
DSDRIVERDESC
desc
;
TRACE
(
"DSOUND_capture_guids[%ld]
\n
"
,
wid
);
ppd
->
WaveDeviceId
=
wid
;
ppd
->
WaveDeviceId
=
wid
;
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
err
=
mmErr
(
waveInMessage
((
HWAVEIN
)
wid
,
DRV_QUERYDSOUNDDESC
,(
DWORD
)
&
(
desc
),
0
));
if
(
err
==
DS_OK
)
{
if
(
err
==
DS_OK
)
{
...
...
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