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
518f4f8c
Commit
518f4f8c
authored
Oct 18, 2009
by
Jörg Höhle
Committed by
Alexandre Julliard
Nov 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mciwave: Set wave format PCM is the only one accepted.
parent
f177e613
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
mciwave.c
dlls/mciwave/mciwave.c
+5
-5
mci.c
dlls/winmm/tests/mci.c
+1
-1
No files found.
dlls/mciwave/mciwave.c
View file @
518f4f8c
...
...
@@ -1310,6 +1310,11 @@ static DWORD WAVE_mciSet(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpPa
TRACE
(
"MCI_WAVE_SET_ANYINPUT !
\n
"
);
if
(
dwFlags
&
MCI_WAVE_SET_ANYOUTPUT
)
TRACE
(
"MCI_WAVE_SET_ANYOUTPUT !
\n
"
);
if
(
dwFlags
&
MCI_WAVE_SET_FORMATTAG
)
{
TRACE
(
"MCI_WAVE_SET_FORMATTAG = %d
\n
"
,
((
LPMCI_WAVE_SET_PARMS
)
lpParms
)
->
wFormatTag
);
if
(((
LPMCI_WAVE_SET_PARMS
)
lpParms
)
->
wFormatTag
!=
WAVE_FORMAT_PCM
)
return
MCIERR_OUTOFRANGE
;
}
if
(
dwFlags
&
MCI_WAVE_SET_AVGBYTESPERSEC
)
{
wmw
->
wfxRef
.
nAvgBytesPerSec
=
((
LPMCI_WAVE_SET_PARMS
)
lpParms
)
->
nAvgBytesPerSec
;
TRACE
(
"MCI_WAVE_SET_AVGBYTESPERSEC = %d
\n
"
,
wmw
->
wfxRef
.
nAvgBytesPerSec
);
...
...
@@ -1326,11 +1331,6 @@ static DWORD WAVE_mciSet(MCIDEVICEID wDevID, DWORD dwFlags, LPMCI_SET_PARMS lpPa
wmw
->
wfxRef
.
nChannels
=
((
LPMCI_WAVE_SET_PARMS
)
lpParms
)
->
nChannels
;
TRACE
(
"MCI_WAVE_SET_CHANNELS = %d
\n
"
,
wmw
->
wfxRef
.
nChannels
);
}
if
(
dwFlags
&
MCI_WAVE_SET_FORMATTAG
)
{
/* Dangerous because the correct cbSize cannot be set */
wmw
->
wfxRef
.
wFormatTag
=
((
LPMCI_WAVE_SET_PARMS
)
lpParms
)
->
wFormatTag
;
TRACE
(
"MCI_WAVE_SET_FORMATTAG = %d
\n
"
,
wmw
->
wfxRef
.
wFormatTag
);
}
if
(
dwFlags
&
MCI_WAVE_SET_SAMPLESPERSEC
)
{
wmw
->
wfxRef
.
nSamplesPerSec
=
((
LPMCI_WAVE_SET_PARMS
)
lpParms
)
->
nSamplesPerSec
;
TRACE
(
"MCI_WAVE_SET_SAMPLESPERSEC = %d
\n
"
,
wmw
->
wfxRef
.
nSamplesPerSec
);
...
...
dlls/winmm/tests/mci.c
View file @
518f4f8c
...
...
@@ -233,7 +233,7 @@ static void test_recordWAVE(HWND hwnd)
/* MCI seems to solely support PCM, no need for ACM conversion. */
err
=
mciSendString
(
"set x format tag 2"
,
NULL
,
0
,
NULL
);
todo_wine
ok
(
err
==
MCIERR_OUTOFRANGE
,
"mci set format tag 2 returned error: %d
\n
"
,
err
);
ok
(
err
==
MCIERR_OUTOFRANGE
,
"mci set format tag 2 returned error: %d
\n
"
,
err
);
err
=
mciSendString
(
"set x format tag pcm"
,
NULL
,
0
,
NULL
);
ok
(
!
err
,
"mci set format tag pcm returned error: %d
\n
"
,
err
);
...
...
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