Jörg Höhle
8cf585f69e
winmm/tests: Fix one mcicda test failure on VMware.
2010-10-27 18:37:32 +02:00
Detlef Riekenberg
aa95bc4e31
winmm/tests: Set a struct member to 0 is obsolete after adding a memset.
2010-10-04 11:03:57 +02:00
Saulius Krasuckas
815cd34c53
winmm/tests: Initialize whole MIDIHDR struct before using it.
2010-10-01 17:48:10 +02:00
Alexandre Julliard
c2224ea8bb
winmm/tests: Skip tests if MIDI cannot be opened.
2010-09-29 12:19:34 +02:00
Alexandre Julliard
ddac146e7d
winmm/tests: Fix some tests that fail on Windows with no input device.
2010-09-22 18:58:46 +02:00
Alexandre Julliard
81b8ee863e
makefiles: Add a standard header for all makefiles to replace the common variable initializations.
2010-09-19 12:36:48 +02:00
Jörg Höhle
b4cc03f3e3
winmm: Auto-open MCI core commands only.
2010-09-16 11:16:23 -05:00
Jörg Höhle
8fb1e3eba2
winmm: Support MCI_SOUND.
2010-09-16 11:16:23 -05:00
Jörg Höhle
294d0c9501
winmm: Implement MCIERR_DUPLICATE_ALIAS and MCIERR_DEVICE_OPEN.
2010-09-03 16:02:31 +02:00
Jörg Höhle
6b271b6d3c
winmm: GetDeviceID only considers a single name per entry.
2010-09-03 16:02:31 +02:00
Jörg Höhle
565c56c61f
winmm: Correctly parse the MCI Sysinfo command.
2010-09-03 16:02:31 +02:00
Jörg Höhle
c6a655622c
winmm/tests: Share common function dbg_mcierr.
2010-09-03 11:04:47 +02:00
Jörg Höhle
d223b30bd6
winmm/tests: Add MCI parser tests.
2010-09-02 18:05:24 +02:00
Jörg Höhle
0030ef8d26
winmm/tests: MCI_STATUS returns DWORD_PTR, unlike other commands.
2010-09-02 18:05:24 +02:00
Jörg Höhle
0cf326ce55
winmm/tests: Add a few Open/Close MCI tests.
2010-09-02 18:05:23 +02:00
Jörg Höhle
e1fe9e4fed
winmm: Close MCI device after immediate auto-open commands.
2010-09-02 18:05:23 +02:00
Jörg Höhle
ef372e259a
winmm: MCI open always creates an alias for subsequent commands.
2010-09-02 18:05:23 +02:00
Jörg Höhle
ecb02ec9b7
mcicda: Access the first CD-ROM unless given a device letter.
2010-08-25 18:40:47 +02:00
Jörg Höhle
5bff616faa
mcicda: Opens d, d:, d:\, d:\foo since w2k. Only d: is portable.
2010-08-25 18:40:09 +02:00
Jörg Höhle
70d8fce222
winmm/tests: Initial tests for CD audio with the MCI.
2010-08-23 15:52:47 +02:00
Alexandre Julliard
b86d515ed6
dlls: Remove explicit imports of kernel32 and ntdll.
2010-07-21 17:38:36 +02:00
Eric Pouech
e9e6845d66
winmm: Added a couple of tests for structure alignment.
2010-06-28 11:45:23 +02:00
Jörg Höhle
594a70f550
winmm: Have MCI drivers handle notification for MCI_OPEN.
...
All notifications are handled locally by the drivers.
2010-05-20 16:25:44 +02:00
Jörg Höhle
c89853ebe5
winmm: More MIDI boundary tests & fixes.
2010-05-19 11:17:27 +02:00
Gerald Pfeifer
eab579dfcb
winmm/tests: Remove two unused variables (and dead code) from check_position.
2010-05-10 18:20:36 +02:00
Gerald Pfeifer
6a6749937b
winmm/tests: Remove variable start which is not really used from wave_out_test_deviceOut.
2010-05-03 15:42:05 +02:00
Maarten Lankhorst
963102fd89
winmm: Fix handle leak in timer tests.
2010-04-26 10:22:29 -05:00
Gerald Pfeifer
d623f0045a
winmm: Remove variables duration and samples which are not really used from check_position.
2010-04-26 07:03:04 -05:00
Jörg Höhle
c662c35edc
winmm: MCI_SYSINFO dwRetSize counts characters, not bytes.
...
MSDN says the contrary.
2010-04-16 12:39:26 +02:00
Alexandre Julliard
36822bbd7d
winmm/tests: Fix a pointer conversion warning on 64-bit.
2010-04-12 15:39:32 +02:00
Jörg Höhle
c31bdb98f9
winmm/tests: Add more MCI tests.
2010-04-01 18:12:41 +02:00
Jörg Höhle
f70b2f5493
winmm: Improve MCI's Sysinfo command.
2010-04-01 18:12:41 +02:00
Jörg Höhle
e89468734d
winmm: Support MCI "close all" command.
...
This is not yet generalized to "pause all" or "stop all".
2010-04-01 18:12:41 +02:00
Jörg Höhle
74ad854e41
winmm/tests: Use cpp's __LINE__ to print meaningful line numbers.
2010-03-30 14:57:51 +02:00
Jörg Höhle
104cc7c28e
midimap: Allow GetVolume by device identifier.
2010-03-19 13:15:44 +01:00
Alexandre Julliard
bef5645eb1
makefiles: Remove the no longer needed explicit separators for dependencies.
2010-03-16 13:28:19 +01:00
Jörg Höhle
bafbc9820e
winmm/tests: Fix up to 3 MCI test failures.
2010-03-02 16:11:05 +01:00
Gerald Pfeifer
9d8160c52a
winmm/tests: Fix test condition in test_midiStream().
2010-02-25 12:10:28 +01:00
Jörg Höhle
10b1e2ee88
winmm/tests: Fix transient notification error: messages may arrive late.
2010-02-24 15:12:30 +01:00
Jörg Höhle
9b442134cf
winmm/tests: MIDIHDR tests.
2010-02-22 13:18:48 +01:00
Jörg Höhle
e1cf94d9da
midimap: Have GetDevCaps error out when no MIDI device is present.
2010-02-22 13:16:57 +01:00
Alexandre Julliard
6164ce2d82
makefiles: Use the standard C_SRCS variable as the list of test files.
...
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Alexandre Julliard
f7a447bada
winmm/tests: Fix a couple of incorrect casts.
2010-02-16 15:50:21 +01:00
Jörg Höhle
7bd6be0706
winmm: Fix incorrect memory useage (Valgrind w/ MIDI tests).
2010-02-11 14:38:44 +01:00
Jörg Höhle
a8b8078704
midimap: Implement callback/notification.
2010-02-11 14:38:44 +01:00
Jörg Höhle
a758c6a981
winmm: The 64KB buffer limit on MIDIHDR buffers applies to streams only.
2010-02-03 15:49:09 +01:00
Jörg Höhle
771a29da86
winmm/tests: Initial set of MIDI tests.
2010-02-03 15:49:01 +01:00
Dmitry Timoshkov
132e646fd4
winmm: Add a bunch of new mmio tests which discover some bugs in mmio handling.
2010-01-25 13:01:55 +01:00
Dmitry Timoshkov
7639ea3184
winmm: Buffer size must be at least MMIO_DEFAULTBUFFER (8192) bytes.
...
mmioOpen() with the length of buffer set to 0 expects the buffer to be at least
MMIO_DEFAULTBUFFER (8192) bytes in size, and using buffer of smaller size can
lead to various problems when the buffer actually gets used.
2010-01-18 14:15:43 +01:00
Jörg Höhle
e36db94c7c
winmm: Don't stop parsing after MCI's alias keyword.
2009-11-23 13:09:53 +01:00
Jörg Höhle
11f07c6f6b
winmm/tests: Introduce coherence tests among parts that may fail.
2009-11-23 13:09:50 +01:00
Jörg Höhle
7ade23e300
winmm: Enable more MCI waveaudio tests.
2009-11-16 15:18:18 +01:00
Jörg Höhle
18971c94b6
winmm/tests: Print symbolic MCIERR_ names.
2009-11-16 15:17:54 +01:00
Jörg Höhle
b04178eb01
mciwave/tests: Fix a few tests including one hang on Win9X.
2009-11-13 16:30:09 +01:00
Jörg Höhle
23060afdcd
mciwave: Play/Record return MCIERR_OUTOFRANGE as required.
2009-11-11 11:36:19 +01:00
Jörg Höhle
7c62fe4639
mciwave: Seek stops and rounds position down modulo nBlockAlign.
2009-11-11 11:35:47 +01:00
Jörg Höhle
096b774db2
mciwave: Implement Cue as no-op.
...
Tests show that it must not close the opened wave file.
2009-11-11 11:32:41 +01:00
Jörg Höhle
2dfd3e901b
mciwave: Rework MCI notification system.
2009-11-11 11:32:24 +01:00
Jörg Höhle
db921ef7dc
winmm/tests: Give flaky progress test more time.
2009-11-11 11:30:22 +01:00
Jörg Höhle
6b22861bfd
winmm: MCI Close all causes one notification per open driver.
2009-11-10 13:12:52 +01:00
Jörg Höhle
c4b5bd44c0
mciwave: Stop must not reset current position.
2009-11-10 13:12:32 +01:00
Jörg Höhle
d0e1a4f96f
winmm/tests: Fix MCI test failure on Win9x/WinME.
2009-11-10 13:10:55 +01:00
Francois Gouget
dff253abe6
winmm/tests: Add a trailing '\n' to an ok() call.
2009-11-09 19:41:07 +01:00
Nicolas Le Cam
556b1ca7ed
winmm/tests: Skip tests when running on non-english locale.
2009-11-09 19:38:19 +01:00
Jörg Höhle
de00535c13
mciwave: Allow (again) to set wave format parameters prior to recording.
2009-11-05 15:46:28 +01:00
Jörg Höhle
518f4f8cdb
mciwave: Set wave format PCM is the only one accepted.
2009-11-05 15:46:19 +01:00
Jörg Höhle
f177e61338
winmm: Do not crash on NULL MCI Sysinfo command output buffer pointer.
2009-11-05 15:46:14 +01:00
Jörg Höhle
4aa5f5bc10
winmm/tests: Add MCI waveaudio tests.
2009-11-05 14:45:40 +01:00
Ken Thomases
8b086d6050
winmm/tests: Don't complain for Wine drivers that allow multiple wave-out opens.
2009-10-16 13:36:41 +02:00
Paul Vriens
55b3a9c906
winmm/tests: Fix some test failures in Win9x and WinMe.
2009-10-14 11:50:27 +02:00
Jörg Höhle
ad75d9a217
winmm/tests: Correct (IMA)ADPCM test.
2009-10-06 16:13:17 +02:00
Dan Kegel
ea5a6f2db5
winmm: Don't convert return string in mciSendStringA on error.
2009-07-06 14:35:27 +02:00
Gerald Pfeifer
c4a0539a79
winmm: Use & instead of && for bit test in wave_out_test_deviceOut().
2009-06-08 14:28:49 +02:00
Paul Vriens
1aa71ea39e
winmm/tests: Remove an unreliable test.
2009-06-01 16:16:02 +02:00
Gerald Pfeifer
d840311f24
winmm/tests: Fix test in wave_out_test_deviceOut().
2009-05-25 14:25:50 +02:00
Detlef Riekenberg
be0721d442
winmm/tests: Fix a test on win98.
2009-04-09 11:19:15 +02:00
Michael Stefaniuc
8fde5bf807
winmm: Remove superfluous pointer casts.
2009-02-20 18:07:42 +01:00
Alexandre Julliard
9f32c0d9d6
winmm/tests: Assume volume is not supported if waveGetOutVolume fails.
2009-02-16 12:29:11 +01:00
Alexandre Julliard
3c68ba1bad
winmm/tests: Don't test upper bound on sound duration, it's not guaranteed.
...
Also avoid infinite waits.
2009-02-11 15:56:03 +01:00
Alasdair Sinclair
986b957e4a
winmm/tests: Fix missing void in empty parameter list.
2009-01-29 12:19:49 +01:00
Alexandre Julliard
023df85183
winmm/tests: Increase the timing tolerances some more.
2009-01-20 14:02:12 +01:00
Alexandre Julliard
94d9cfadb0
winmm/tests: Fix handle casting warnings on 64-bit.
2009-01-03 20:15:25 +01:00
Paul Vriens
cb05885f5d
winmm/tests: Fix a test failure on NT4 and W2K.
2008-12-23 12:51:23 +01:00
Andrew Nguyen
0135bf8a0c
winmm: mixerOpen should return success with NULL dwCallback and CALLBACK_WINDOW flag.
2008-12-22 13:43:56 +01:00
Andrew Nguyen
64cf306292
winmm/tests: Refactor the mixerOpen and mixerClose tests and add a few additional test cases.
2008-12-22 13:43:42 +01:00
Andrew Nguyen
81e37d19e3
winmm/tests: Fix a mismatched failure message.
2008-12-22 13:43:33 +01:00
Alistair Leslie-Hughes
aa50cd316c
winmm: Increase tolerance range.
2008-11-12 11:49:12 +01:00
Paul Vriens
05c40e08a6
winmm/tests: Fix a test failure on Vista and W2K8.
2008-11-12 11:49:11 +01:00
Paul Vriens
47dddefbb2
winmm/tests: Fix a test failure on Vista and W2K8.
2008-11-07 13:56:08 +01:00
Paul Vriens
97802ef16b
winmm/tests: Fix failure on Win9x and WinMe.
2008-11-06 15:01:07 +01:00
Jeff Zaroyko
bba54cd407
winmm: Fix a failing mixer test on 98 and ME.
2008-10-17 12:38:52 +02:00
Kai Blin
d9145df0da
winmm: Use skip() instead of trace() when skipping tests.
2008-10-14 13:41:56 +02:00
Paul Vriens
c0e4e2da1e
winmm/tests: Fix some failures on Vista and W2K8.
2008-10-10 12:27:39 +02:00
Paul Vriens
6c0467c18c
winmm/tests: Fix the failures on Win9x and WinMe.
2008-10-10 12:27:36 +02:00
Paul Vriens
f4ba76e1d1
winmm/tests: Fix a test on win9x.
2008-09-08 12:49:12 +02:00
Maarten Lankhorst
6a7127bfc2
winmm: Test opening the same device twice.
...
Behavioral test to show that wine winmm needs fixing.
2008-08-19 13:36:16 +02:00
Dan Kegel
6f164d504b
winmm/tests: Test mciSendString with non-null return string buffer.
2008-07-23 13:53:56 +02:00
Dmitry Timoshkov
4d2a2860a5
winmm: Add another test confirming that mmioDescend does set fccType of non RIFF/LIST chunks to 0.
2008-06-25 20:28:13 +02:00
Dan Kegel
97f4fbca7e
winmm/tests: Initialize MIXERLINECONTROLSA before calling mixerGetLineControlsA.
2008-06-23 12:46:04 +02:00
Dmitry Timoshkov
efcdb202b2
winmm: Clear the fccType in mmioDescend for a not RIFF/LIST case.
2008-06-18 17:11:27 +02:00
Dmitry Timoshkov
64cbea525b
winmm: Add the tests for mmioOpen and mmioSetBuffer, make them pass under Wine.
2008-06-18 17:11:14 +02:00
Dan Kegel
b608e39e1f
winmm: Use HeapAlloc in the capture test instead of using strdup.
2008-05-26 19:46:23 +02:00
Maarten Lankhorst
6589d9ab95
winmm: Use HeapAlloc in the wave test instead of using strdup.
2008-05-22 21:29:48 +02:00
Maarten Lankhorst
fc777c0ed3
winmm: Make mixer test less strict so it passes with SoundMAX drivers on XP.
2008-05-06 11:25:31 +02:00
James Hawkins
4daec079c1
winmm: Remove a failing test that is driver-specific.
2008-04-25 11:33:59 +02:00
Robert Reif
fa9a26921c
winmm: Fix a test failure on Windows with Terminal Server.
2008-04-25 11:28:57 +02:00
Francois Gouget
dcb8dd3ce3
winmm/tests: Don't use 0x55 to avoid any confusion when running with +heap.
2008-03-03 12:07:02 +01:00
Alexandre Julliard
edb91ce519
winmm/tests: Make sure the callback thread has a message queue.
2008-02-28 19:56:48 +01:00
Alexandre Julliard
dfc0564993
winmm/tests: Don't mess with the mixer controls in non-interactive mode.
2007-12-05 13:47:30 +01:00
Dan Kegel
3d9b69f5a3
winmm: Avoid testing linecontrols if can't get line info.
2007-10-26 14:04:03 +02:00
Michael Stefaniuc
d14da0763d
winmm: Replace malloc with HeapAlloc.
2007-06-26 11:58:06 +02:00
Dmitry Timoshkov
3c9e7a7f33
wine: Switch to using 'long' for INT_PTR type for 64-bit compatibility.
2007-05-25 20:37:56 +02:00
Maarten Lankhorst
35a8ee9340
winmm: Implement CALLBACK_WINDOW.
2007-04-16 12:12:46 +02:00
Francois Gouget
6834945ece
winmm/tests: Use '%u' to print GetLastError().
2007-01-18 12:55:32 +01:00
Francois Gouget
9279edfb03
winmm/tests: Replace some '#if 0's with 'if (0)'s.
...
Fix the code so it compiles without warnings.
2007-01-12 11:24:33 +01:00
Marcus Meissner
4d52a421d7
Made some functions static.
2006-12-12 12:10:57 +01:00
Michael Stefaniuc
8f0f9371a8
winmm/tests: Win64 printf format warning fixes.
2006-11-13 12:49:27 +01:00
Michael Stefaniuc
60c19952b7
winmm/tests: Fix the parameters of LPTIMECALLBACK functions.
2006-11-13 12:49:14 +01:00
Michael Stefaniuc
85ce5117c5
Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int.
2006-09-29 16:08:30 +02:00
Alexandre Julliard
32ab895e46
makefiles: Generate the dependencies line to avoid some code duplication.
2006-09-14 09:38:16 +02:00
Jan Zerebecki
6698e9e0b0
winmm: Prevent NULL dereference in MCI_Close and add testcase for it.
2006-09-07 16:10:48 +02:00
Alexandre Julliard
0fa8baafcb
make_dlls: Recursively ignore .ok files in all tests directories.
2006-07-10 21:26:50 +02:00
Alexandre Julliard
edd100b899
make_dlls: Recursively ignore testlist.c in all tests directories.
2006-07-10 21:19:42 +02:00
Alexandre Julliard
cc2b3b48e6
Take advantage of the recursive nature of .gitignore for Makefile entries.
...
Prefix other entries with '/' to make them non-recursive.
2006-07-10 20:47:54 +02:00
Alexandre Julliard
82a404a077
winmm/tests: Don't use sizeof in ok() to avoid printf format warnings.
2006-06-13 14:04:07 +02:00
Robert Reif
2b3247a424
winmm: Always check for open and close enents in wave test.
...
Always check for open and close events.
Send WM_APP message to thread to terminate it rather than TerminateThread.
Fix CreateThread/waveOutOpen race by waiting for background thread to
run before waveOutOpen is called.
Add more non-hardware supported formats. There is a bug in wave
mapper GetPosition when multiple headers are used and this helps
trigger it.
2006-05-31 11:45:22 +02:00
Robert Reif
fe2becaee3
winmm: Add multiple header wave tests.
...
The current wave tests only use a single header for playback. Tests
have been added to use multiple headers and to reuse them. This is
how streaming applications and direct sound use the wave api.
2006-05-30 12:22:58 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Robert Reif
ed62b0150c
winmm: Fix wave test handle use after close bug.
2006-05-20 14:00:22 +02:00
Robert Reif
d1b838e948
winmm: Fix wave test volume warning.
...
Volume is only valid when sound card has volume support.
2006-05-11 12:10:45 +02:00
Robert Reif
9ff27bf6bc
winmm: Print out more info on failed test.
...
Print out more info on failed test. Looks like there is a bug in ALSA
OSS emulation where it is returning a mid-sample position.
2006-05-09 20:44:56 +02:00
Robert Reif
a9bd81be63
winmm: Check waveOutGetVolume parameter.
2006-05-09 11:54:55 +02:00
Robert Reif
319633963d
winmm: More wave callback tests.
...
Add tests for CALLBACK_FUNCTION and CALLBACK_THREAD. The only
callback type not tested now is CALLBACK_WINDOW.
2006-05-08 14:49:11 +02:00
Alexandre Julliard
0ec7e1a591
Renamed all .cvsignore files to .gitignore.
2005-11-26 13:10:33 +01:00
Francois Gouget
0edbaf7e80
Remove spaces before '\n' in traces.
2005-11-10 12:14:56 +00:00
Robert Reif
274de441f7
Add waveOutPause/waveOutRestart test.
...
Tighten up play duration test when ending too soon.
Set VirtualFree size to 0.
2005-10-31 10:03:25 +00:00
Dmitry Timoshkov
08de86c831
Add a test for mmioDescend, make it pass under Wine.
2005-09-16 19:40:27 +00:00
Stefan Huehner
863a4b1488
Fix some more -Wstrict-prototypes warnings.
2005-06-21 20:53:13 +00:00
Mike McCormack
383302c11e
Make functions static.
2005-06-20 10:30:15 +00:00
Stefan Huehner
03cc8c4181
Remove some -Wstrict-prototypes warnings.
2005-06-17 10:11:37 +00:00
Mike McCormack
65ad7da1f7
Fix some declaration and write string warnings.
2005-06-16 10:45:25 +00:00
Alexandre Julliard
c2d5b444b3
Moved the NONAMELESSUNION/STRUCT macros to wine/test.h so that they
...
can be used in all the test.
2005-06-13 12:10:54 +00:00
Robert Reif
684f111070
Remove priority boost stuff.
2005-04-24 17:23:51 +00:00
Robert Reif
419e92812b
Set thread priority for timer thread.
...
Add timer thread priority test.
2005-04-23 19:03:47 +00:00
Robert Reif
ed8cf4e3a9
Changed regression test to make sure position is correctly checked
...
when a different type is returned.
Added Jeremy White's WAVE_FORMAT_DIRECT/WAVE_MAPPER fix.
Added waveInGetPosition checks.
2005-04-11 12:49:22 +00:00
Robert Reif
83d29a0761
Check wave out volume support.
2005-03-18 10:25:48 +00:00
Francois Gouget
9e53994abe
Warn the user if he is running the test in interactive mode but the
...
sound is turned off.
2005-03-03 13:49:30 +00:00
Jeremy White
494a34bfda
An interactive test should have volume, else a rational user will
...
decide it is broken.
2005-02-23 20:28:28 +00:00
Jeremy White
1b685779a4
When testing the WAVE_MAPPER device, it seems inappropriate (to me) to
...
demand WAVE_FORMAT_DIRECT; this fixes another slew of tests.
2005-02-23 12:42:43 +00:00
Robert Reif
e3566d8260
Fix timer tests to pass on windows 98.
2005-02-18 12:51:54 +00:00