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
a7e8f6f3
Commit
a7e8f6f3
authored
Jun 04, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Jun 04, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle case where partial structure update requested.
Minor white space cleanup.
parent
7d2f5a7b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
13 deletions
+18
-13
wavemap.c
dlls/winmm/wavemap/wavemap.c
+18
-13
No files found.
dlls/winmm/wavemap/wavemap.c
View file @
a7e8f6f3
...
...
@@ -404,18 +404,20 @@ static DWORD wodGetDevCaps(UINT wDevID, WAVEMAPDATA* wom, LPWAVEOUTCAPSA lpWaveC
return
MMSYSERR_BADDEVICEID
;
/* otherwise, return caps of mapper itself */
if
(
wDevID
==
(
UINT
)
-
1
||
wDevID
==
(
UINT16
)
-
1
)
{
lpWaveCaps
->
wMid
=
0x00FF
;
lpWaveCaps
->
wPid
=
0x0001
;
lpWaveCaps
->
vDriverVersion
=
0x0100
;
strcpy
(
lpWaveCaps
->
szPname
,
"Wine wave out mapper"
);
lpWaveCaps
->
dwFormats
=
WAVEOUTCAPSA
woc
;
woc
.
wMid
=
0x00FF
;
woc
.
wPid
=
0x0001
;
woc
.
vDriverVersion
=
0x0100
;
strcpy
(
woc
.
szPname
,
"Wine wave out mapper"
);
woc
.
dwFormats
=
WAVE_FORMAT_96M08
|
WAVE_FORMAT_96S08
|
WAVE_FORMAT_96M16
|
WAVE_FORMAT_96S16
|
WAVE_FORMAT_48M08
|
WAVE_FORMAT_48S08
|
WAVE_FORMAT_48M16
|
WAVE_FORMAT_48S16
|
WAVE_FORMAT_4M08
|
WAVE_FORMAT_4S08
|
WAVE_FORMAT_4M16
|
WAVE_FORMAT_4S16
|
WAVE_FORMAT_2M08
|
WAVE_FORMAT_2S08
|
WAVE_FORMAT_2M16
|
WAVE_FORMAT_2S16
|
WAVE_FORMAT_1M08
|
WAVE_FORMAT_1S08
|
WAVE_FORMAT_1M16
|
WAVE_FORMAT_1S16
;
lpWaveCaps
->
wChannels
=
2
;
lpWaveCaps
->
dwSupport
=
WAVECAPS_VOLUME
|
WAVECAPS_LRVOLUME
;
woc
.
wChannels
=
2
;
woc
.
dwSupport
=
WAVECAPS_VOLUME
|
WAVECAPS_LRVOLUME
;
memcpy
(
lpWaveCaps
,
&
woc
,
min
(
dwParam2
,
sizeof
(
woc
)));
return
MMSYSERR_NOERROR
;
}
...
...
@@ -847,17 +849,20 @@ static DWORD widGetDevCaps(UINT wDevID, WAVEMAPDATA* wim, LPWAVEINCAPSA lpWaveCa
return
MMSYSERR_BADDEVICEID
;
/* otherwise, return caps of mapper itself */
if
(
wDevID
==
(
UINT
)
-
1
||
wDevID
==
(
UINT16
)
-
1
)
{
lpWaveCaps
->
wMid
=
0x00FF
;
lpWaveCaps
->
wPid
=
0x0001
;
lpWaveCaps
->
vDriverVersion
=
0x0001
;
strcpy
(
lpWaveCaps
->
szPname
,
"Wine wave in mapper"
);
lpWaveCaps
->
dwFormats
=
WAVEINCAPSA
wic
;
wic
.
wMid
=
0x00FF
;
wic
.
wPid
=
0x0001
;
wic
.
vDriverVersion
=
0x0001
;
strcpy
(
wic
.
szPname
,
"Wine wave in mapper"
);
wic
.
dwFormats
=
WAVE_FORMAT_96M08
|
WAVE_FORMAT_96S08
|
WAVE_FORMAT_96M16
|
WAVE_FORMAT_96S16
|
WAVE_FORMAT_48M08
|
WAVE_FORMAT_48S08
|
WAVE_FORMAT_48M16
|
WAVE_FORMAT_48S16
|
WAVE_FORMAT_4M08
|
WAVE_FORMAT_4S08
|
WAVE_FORMAT_4M16
|
WAVE_FORMAT_4S16
|
WAVE_FORMAT_2M08
|
WAVE_FORMAT_2S08
|
WAVE_FORMAT_2M16
|
WAVE_FORMAT_2S16
|
WAVE_FORMAT_1M08
|
WAVE_FORMAT_1S08
|
WAVE_FORMAT_1M16
|
WAVE_FORMAT_1S16
;
lpWaveCaps
->
wChannels
=
2
;
wic
.
wChannels
=
2
;
memcpy
(
lpWaveCaps
,
&
wic
,
min
(
dwParam2
,
sizeof
(
wic
)));
return
MMSYSERR_NOERROR
;
}
ERR
(
"This shouldn't happen
\n
"
);
...
...
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