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
f0baaff4
Commit
f0baaff4
authored
Nov 21, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Apr 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: MCI Status returns string resource when appropriate.
parent
e8157bf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
mciwave.c
dlls/mciwave/mciwave.c
+21
-6
No files found.
dlls/mciwave/mciwave.c
View file @
f0baaff4
...
...
@@ -1518,15 +1518,34 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_WAVE_INPUT
:
lpParms
->
dwReturn
=
wmw
->
wInput
;
if
(
wmw
->
wInput
!=
(
WORD
)
WAVE_MAPPER
)
lpParms
->
dwReturn
=
wmw
->
wInput
;
else
{
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
WAVE_MAPPER
,
WAVE_MAPPER_S
);
ret
=
MCI_RESOURCE_RETURNED
;
}
TRACE
(
"MCI_WAVE_INPUT => %d
\n
"
,
(
signed
)
wmw
->
wInput
);
break
;
case
MCI_WAVE_OUTPUT
:
lpParms
->
dwReturn
=
wmw
->
wOutput
;
if
(
wmw
->
wOutput
!=
(
WORD
)
WAVE_MAPPER
)
lpParms
->
dwReturn
=
wmw
->
wOutput
;
else
{
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
WAVE_MAPPER
,
WAVE_MAPPER_S
);
ret
=
MCI_RESOURCE_RETURNED
;
}
TRACE
(
"MCI_WAVE_OUTPUT => %d
\n
"
,
(
signed
)
wmw
->
wOutput
);
break
;
/* It is always ok to query wave format parameters,
* except on auto-open yield MCIERR_UNSUPPORTED_FUNCTION. */
case
MCI_WAVE_STATUS_FORMATTAG
:
if
(
wmw
->
lpWaveFormat
->
wFormatTag
!=
WAVE_FORMAT_PCM
)
lpParms
->
dwReturn
=
wmw
->
lpWaveFormat
->
wFormatTag
;
else
{
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
WAVE_FORMAT_PCM
,
WAVE_FORMAT_PCM_S
);
ret
=
MCI_RESOURCE_RETURNED
;
}
TRACE
(
"MCI_WAVE_FORMATTAG => %lu
\n
"
,
lpParms
->
dwReturn
);
break
;
case
MCI_WAVE_STATUS_AVGBYTESPERSEC
:
lpParms
->
dwReturn
=
wmw
->
lpWaveFormat
->
nAvgBytesPerSec
;
TRACE
(
"MCI_WAVE_STATUS_AVGBYTESPERSEC => %lu
\n
"
,
lpParms
->
dwReturn
);
...
...
@@ -1543,10 +1562,6 @@ static DWORD WAVE_mciStatus(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_STATUS_PARM
lpParms
->
dwReturn
=
wmw
->
lpWaveFormat
->
nChannels
;
TRACE
(
"MCI_WAVE_STATUS_CHANNELS => %lu
\n
"
,
lpParms
->
dwReturn
);
break
;
case
MCI_WAVE_STATUS_FORMATTAG
:
lpParms
->
dwReturn
=
wmw
->
lpWaveFormat
->
wFormatTag
;
TRACE
(
"MCI_WAVE_FORMATTAG => %lu
\n
"
,
lpParms
->
dwReturn
);
break
;
case
MCI_WAVE_STATUS_SAMPLESPERSEC
:
lpParms
->
dwReturn
=
wmw
->
lpWaveFormat
->
nSamplesPerSec
;
TRACE
(
"MCI_WAVE_STATUS_SAMPLESPERSEC => %lu
\n
"
,
lpParms
->
dwReturn
);
...
...
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