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
79575d33
Commit
79575d33
authored
Jun 23, 2011
by
Andrew Eikum
Committed by
Alexandre Julliard
Jun 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm/tests: Remove uninteresting tests.
parent
7d82403f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
71 deletions
+2
-71
capture.c
dlls/winmm/tests/capture.c
+1
-24
wave.c
dlls/winmm/tests/wave.c
+1
-47
No files found.
dlls/winmm/tests/capture.c
View file @
79575d33
...
...
@@ -294,7 +294,7 @@ static void wave_in_test_device(UINT_PTR device)
{
WAVEINCAPSA
capsA
;
WAVEINCAPSW
capsW
;
WAVEFORMATEX
format
,
oformat
;
WAVEFORMATEX
format
;
WAVEFORMATEXTENSIBLE
wfex
;
HWAVEIN
win
;
MMRESULT
rc
;
...
...
@@ -439,29 +439,6 @@ static void wave_in_test_device(UINT_PTR device)
VirtualFree
(
twoPages
,
2
*
dwPageSize
,
MEM_RELEASE
);
}
/* Testing invalid format: 2 MHz sample rate */
format
.
wFormatTag
=
WAVE_FORMAT_PCM
;
format
.
nChannels
=
2
;
format
.
wBitsPerSample
=
16
;
format
.
nSamplesPerSec
=
2000000
;
format
.
nBlockAlign
=
format
.
nChannels
*
format
.
wBitsPerSample
/
8
;
format
.
nAvgBytesPerSec
=
format
.
nSamplesPerSec
*
format
.
nBlockAlign
;
format
.
cbSize
=
0
;
oformat
=
format
;
rc
=
waveInOpen
(
&
win
,
device
,
&
format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
"waveInOpen(%s): opening the device with 2 MHz sample rate should fail: "
" rc=%s
\n
"
,
dev_name
(
device
),
wave_in_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
trace
(
" got %dx%2dx%d for %dx%2dx%d
\n
"
,
format
.
nSamplesPerSec
,
format
.
wBitsPerSample
,
format
.
nChannels
,
oformat
.
nSamplesPerSec
,
oformat
.
wBitsPerSample
,
oformat
.
nChannels
);
waveInClose
(
win
);
}
/* test non PCM formats */
format
.
wFormatTag
=
WAVE_FORMAT_MULAW
;
format
.
nChannels
=
1
;
...
...
dlls/winmm/tests/wave.c
View file @
79575d33
...
...
@@ -820,7 +820,7 @@ static void wave_out_test_device(UINT_PTR device)
{
WAVEOUTCAPSA
capsA
;
WAVEOUTCAPSW
capsW
;
WAVEFORMATEX
format
,
oformat
;
WAVEFORMATEX
format
;
WAVEFORMATEXTENSIBLE
wfex
;
IMAADPCMWAVEFORMAT
wfa
;
HWAVEOUT
wout
;
...
...
@@ -1103,52 +1103,6 @@ static void wave_out_test_device(UINT_PTR device)
VirtualFree
(
twoPages
,
0
,
MEM_RELEASE
);
}
/* Testing invalid format: 11 bits per sample */
format
.
wFormatTag
=
WAVE_FORMAT_PCM
;
format
.
nChannels
=
2
;
format
.
wBitsPerSample
=
11
;
format
.
nSamplesPerSec
=
22050
;
format
.
nBlockAlign
=
format
.
nChannels
*
format
.
wBitsPerSample
/
8
;
format
.
nAvgBytesPerSec
=
format
.
nSamplesPerSec
*
format
.
nBlockAlign
;
format
.
cbSize
=
0
;
oformat
=
format
;
rc
=
waveOutOpen
(
&
wout
,
device
,
&
format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
"waveOutOpen(%s): opening the device in 11 bits mode should fail: "
"rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
trace
(
" got %dx%2dx%d for %dx%2dx%d
\n
"
,
format
.
nSamplesPerSec
,
format
.
wBitsPerSample
,
format
.
nChannels
,
oformat
.
nSamplesPerSec
,
oformat
.
wBitsPerSample
,
oformat
.
nChannels
);
waveOutClose
(
wout
);
}
/* Testing invalid format: 2 MHz sample rate */
format
.
wFormatTag
=
WAVE_FORMAT_PCM
;
format
.
nChannels
=
2
;
format
.
wBitsPerSample
=
16
;
format
.
nSamplesPerSec
=
2000000
;
format
.
nBlockAlign
=
format
.
nChannels
*
format
.
wBitsPerSample
/
8
;
format
.
nAvgBytesPerSec
=
format
.
nSamplesPerSec
*
format
.
nBlockAlign
;
format
.
cbSize
=
0
;
oformat
=
format
;
rc
=
waveOutOpen
(
&
wout
,
device
,
&
format
,
0
,
0
,
CALLBACK_NULL
|
WAVE_FORMAT_DIRECT
);
ok
(
rc
==
WAVERR_BADFORMAT
||
rc
==
MMSYSERR_INVALFLAG
||
rc
==
MMSYSERR_INVALPARAM
,
"waveOutOpen(%s): opening the device at 2 MHz sample rate should fail: "
"rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
if
(
rc
==
MMSYSERR_NOERROR
)
{
trace
(
" got %dx%2dx%d for %dx%2dx%d
\n
"
,
format
.
nSamplesPerSec
,
format
.
wBitsPerSample
,
format
.
nChannels
,
oformat
.
nSamplesPerSec
,
oformat
.
wBitsPerSample
,
oformat
.
nChannels
);
waveOutClose
(
wout
);
}
/* try some non PCM formats */
format
.
wFormatTag
=
WAVE_FORMAT_MULAW
;
format
.
nChannels
=
1
;
...
...
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