Robert Reif
4c315db1a6
Add tests to check DirectSoundCapture creation.
...
Fix dsound/capture.c to pass tests.
2005-06-05 17:44:30 +00:00
Robert Reif
6ec5b351bb
Move initialization to IDirectSound_Initialize.
...
Fix error paths to handle a failed IDirectSound_Initialize.
Add tests for IDirectSound_Initialize.
2005-05-06 19:33:32 +00:00
James Hawkins
fd6d3567de
Remove nonstandard type LPLPVOID.
2005-04-11 12:52:00 +00:00
Robert Reif
2a438aa033
Keep dsound8.c and dsound.c in sync.
2005-03-30 10:21:44 +00:00
Jakob Eriksson
e4fea46b94
Test fix.
2005-03-22 21:16:04 +00:00
Robert Reif
1a843b93b6
Private property sets do not exist in early versions of Direct Sound
...
so skip tests if not supported.
Add tests for A, W and 1 variations of data.
2005-03-14 10:04:07 +00:00
Robert Reif
aa35787dc7
Don't consider no sound device a failure.
2005-03-05 11:15:27 +00:00
Robert Reif
c3f06fb2e6
Print dsound.dll version from file versioninfo resource.
2005-03-05 10:49:08 +00:00
Robert Reif
3b78212f1d
Add secondary buffer SetFrequency test.
2005-02-25 19:17:11 +00:00
Robert Reif
c9e7bad85b
Try old buffer description structure on failure with new one.
2005-02-24 17:02:42 +00:00
Robert Reif
3cab60997f
Fix tests for win9x and old versions of DirectX.
2005-02-23 12:43:38 +00:00
Robert Reif
99faf74774
Fix capture test to pass on windows 98 when no sound card present or
...
device already in use.
2005-02-18 12:52:14 +00:00
Robert Reif
2b30370796
Fix block align test.
2005-02-18 12:51:43 +00:00
Robert Reif
b8d6b310f9
Fixed invalid buffer size by rounding up to next multiple of
...
nBlockAlign.
Added test to verify buffer rounding behavior.
2005-02-16 16:09:02 +00:00
Francois Gouget
9ee0586cfb
Don't link with DirectSoundCreate8 as this prevents running with older
...
versions of DirectX.
2005-02-10 21:21:13 +00:00
Robert Reif
50dc513b0f
Print info about primary buffer format.
2005-02-10 20:26:20 +00:00
Robert Reif
202c28f8b8
Remove unneeded includes.
2005-01-10 12:25:56 +00:00
Robert Reif
409e7fb172
Don't need to worry about windows messages.
2005-01-09 17:27:44 +00:00
Robert Reif
56dbf7fb21
Initialize and uninitialize COM properly.
2005-01-09 16:34:00 +00:00
Eric Pouech
4056d7ef8c
Fixed some errors in function prototypes.
2004-12-13 21:19:01 +00:00
Robert Reif
50e67ce558
VerifyCertification is not always implemented.
2004-10-26 21:17:37 +00:00
Robert Reif
0a16d361e2
Don't consider a device in use a failure.
2004-10-25 21:45:51 +00:00
Robert Reif
b50347d452
Don't consider a bad format an error unless the capabilities say it
...
should be supported.
Don't consider a device already in use an error.
2004-10-22 19:51:54 +00:00
Robert Reif
b80d1d5d92
Don't consider a device that is already in use a test failure.
2004-10-21 19:51:10 +00:00
Robert Reif
3dcbaaa4cc
Don't consider failure with DSERR_NODRIVER a test failure.
2004-10-19 21:10:41 +00:00
Robert Reif
097e281294
Fix some places where no driver present causes problems.
2004-10-18 19:36:42 +00:00
Francois Gouget
7c89759e88
Make the dsound tests run with DirectX < 8.
2004-09-08 19:08:14 +00:00
Francois Gouget
e3fb36140a
Remove the get_hwnd() implementation from propset.c and reuse the
...
common one.
2004-09-08 19:07:57 +00:00
Francois Gouget
f3880a29ea
Don't use DSBCAPS_{CTRLDEFAULT,CTRLALL} in capability-dumping
...
functions since they are nothing but a combination of other flags and
are thus redundant.
2004-08-31 18:50:59 +00:00
Robert Reif
f01b871898
DirectSound8 doesn't accept 3D stereo secondary buffers but
...
DirectSound does.
Added tests.
2004-08-25 02:09:00 +00:00
Robert Reif
1bd7986c93
Only print format info when in interactive mode for capture test.
...
Cleanup error and info messges.
2004-08-23 17:50:31 +00:00
Robert Reif
b6abcb51a8
Cleanup messages.
2004-08-18 20:53:40 +00:00
Robert Reif
cae33167d2
Cleanup some more messages.
2004-08-18 00:30:12 +00:00
Robert Reif
9d5b0873a0
More dsound tests error message cleanups.
...
Only display verbose information when in interactive mode.
2004-08-13 19:44:29 +00:00
Robert Reif
74662974f6
Start cleaning up error messages.
...
Don't print verbose info unless in interactive mode or debugging.
2004-08-12 03:29:39 +00:00
Hans Leidekker
dbb3e14748
Fix signed/unsigned comparison warnings.
2004-08-09 18:52:18 +00:00
Robert Reif
fbce110be4
Test different primary buffer formats while keeping the secondary
...
buffer format constant.
2004-08-09 18:50:06 +00:00
Robert Reif
4c3d661781
Refactored common test code into subroutines.
...
Added tests for correct Compact behavior.
Added tests for all possible IDirectSound[8] creation modes with good
and bad arguments.
Split dsound.c and ds3d.c into separate files for IDirectSound and
IDirectSound8 interfaces and added code to not execute IDirectSound8
tests when run with a dsound.dll of version 7 or earlier. We should
now be able to run these tests on a Windows system with DX7 or earlier
(untested).
2004-07-30 18:42:51 +00:00
Francois Gouget
7433202199
Check that modifying the secondary buffer volume/pan does not change
...
the primary buffer's volume and pan.
2004-07-23 22:58:46 +00:00
Robert Reif
73bd3be8c8
Downgrade tests to DX8 level so it can build on all windows
...
platforms.
2004-07-22 20:35:36 +00:00
Robert Reif
aa60b5ec0d
Removes dsconf IIDs from dxguid.lib.
...
Fixes propset files for missing IIDs.
2004-07-22 19:40:44 +00:00
Robert Reif
02a8ab2fee
Save enumerated GUIDs in a global array so they persist after
...
enumeration.
White space cleanup.
Add tests for opening default devices.
2004-07-21 03:23:13 +00:00
Francois Gouget
cc3a95c6e9
Make the listener/sound position update duration and TIME_SLICE
...
independent.
Set the sound and listener velocity and increase the sound source
velocity so we may get some doppler effect.
Added some traces so one can monitor the listener/sound positions with
WINETEST_DEBUG=3.
2004-07-19 21:20:38 +00:00
Robert Reif
3ce9c5f4b8
Do initialization to match windows behavior (with test).
2004-07-19 20:06:22 +00:00
Robert Reif
429d3059b1
Fixes the right bugs and keeps intent of test.
...
Adds more reference count checks.
2004-07-19 19:34:44 +00:00
Francois Gouget
b5ee682cae
Don't try to create a IDirectSound3DBuffer, partly to keep this test
...
simple and partly because it's going to fail since we did not request
DSBCAPS_CTRL3D. Fixes a crash on Windows.
Don't request unneeded caps.
2004-07-17 00:04:17 +00:00
Francois Gouget
57aa9ebc38
Get and print the DirectSound primary buffer volume.
2004-07-16 23:42:44 +00:00
Francois Gouget
910b695822
Keep track of how much has been played and get rid of last_pos. This
...
fixes a bug where buffer_service() would not detect that everything
had been played.
Check that the actual sound duration was within 10% of the expected
value.
Make BUFFER_LEN and TIME_SLICE independent, make sure TIME_SLICE does
not divide BUFFER_LEN to spice things up a bit.
2004-07-16 23:42:32 +00:00
Francois Gouget
4c64f9bdf9
Call IDirectSound::Initialize() as per MSDN before using the
...
DirectSound object. Fixes a crash on Windows.
2004-07-16 23:21:46 +00:00
Francois Gouget
acb7207a9d
On Windows GetPan() may not return the value that was just set with
...
SetPan().
2004-07-16 23:21:33 +00:00
Robert Reif
605cc1b029
Remove DirectSound reference counts by buffers and add Destroy
...
functions to buffer components and DirectSound to allow proper
destruction even with outstanding references.
Remove trailing white space.
Add tests for proper release even with active buffers.
2004-07-13 23:35:09 +00:00
Robert Reif
ed9d91e6a1
- Create IDirectSound and IDirectSound8 objects using the
...
CoCreateInstance COM function to test the Class Factory interfaces.
- Create IDirectSound and IDirectSound8 objects using CreateDirectSound
and CreateDirectSound8 using a NULL device GUID.
2004-07-12 19:45:28 +00:00
Robert Reif
31f817b6f9
Separated DirectSoundCreate8 into two functions and added a
...
IDirectSound implementation.
Added proper COM behavior for QueryInterface for IDirectSound and
IDirectSound8.
Fixed a bug in the dsound.h header file for IDirectSound8
CreateSoundBuffer and DuplicateSoundBuffer.
Added new tests for proper COM behavior and enables some commented out
code for tests that work on windows. Added new tests for
IDirectSound8.
2004-07-04 00:13:44 +00:00
Francois Gouget
de9af2414b
Split the 'dsound' test into two parts:
...
- the sound format test. Plays a 5 second reference tone to help
debug issues with the tone duration and help detect stutter issues.
Prints explanations describing the sound format interactive
test. Then plays a 1 second test tone for each supported sound
format.
- the 3D sound tests. Performs the volume, panning, moving listener
tests, etc.
2004-06-17 23:03:11 +00:00
Robert Reif
92b48ba8f6
Fixed deadlock in capture callback.
...
Fixed capture test to check all notifications.
Added better debug messages to capture test.
2004-04-06 20:08:54 +00:00
Alexandre Julliard
589e115233
We no longer use the .exe.spec.c files.
2004-03-02 21:16:37 +00:00
Alexandre Julliard
20b4585e3c
Only link against libdxguid where necessary.
2004-01-27 00:11:16 +00:00
Francois Gouget
998cc56773
Add trailing '\n's to ok() calls.
2004-01-20 21:49:35 +00:00
Robert Reif
93d3492f7f
Make capture more reliable by submitting all buffers before start.
...
Added support for non pcm formats.
Added more property set support.
2003-10-08 22:35:26 +00:00
Robert Reif
3237c5a875
Remove capture tests from dsound.c and place them in a new file
...
capture.c.
2003-09-27 02:21:12 +00:00
Robert Reif
99b0e8fa66
Added volume and pan support to primary buffers.
...
Added more property set support.
2003-09-19 00:10:51 +00:00
Robert Reif
f4866fed8b
Added better tests for volume and pan.
...
Added capture notification test.
Fixed capture query notification test bug.
2003-09-15 20:08:26 +00:00
Alexandre Julliard
e37c6e18d0
Fixed header dependencies to be fully compatible with the Windows
...
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Robert Reif
28651e8187
Added more tests and restructured tests for easier debugging.
2003-09-01 23:59:03 +00:00
Dimitrie O. Paun
4ff79add63
Remove some unneeded __WINESRC__ tests from the headers.
...
Miscellaneous cleanups and fixes.
2003-08-27 02:07:02 +00:00
Robert Reif
0611f902db
Added tests for buffer property sets.
2003-08-20 18:18:39 +00:00
Robert Reif
fe09afb7cc
Fixed bug where last tests were not executed.
...
Print out sound device info.
2003-08-18 19:52:56 +00:00
Alexandre Julliard
21c01853b6
Added propset.ok.
2003-08-07 03:07:26 +00:00
Robert Reif
b5d2f84f87
Added some COM and property set tests.
...
Added LIBUUID to makefile.
2003-08-06 22:57:48 +00:00
Robert Reif
9dacf206fe
3D buffer and listener reference counts should be fixed.
...
3D sound now plays in 3D.
COM interfaces should be correct for buffers and 3D stuff. The COM
interface is broken on notifications but I will fix that next.
Fixed the bug when closing and opening the same or another sound
device quickly.
Fixed some locking but there is a lot of work left yet.
2003-06-27 22:22:15 +00:00
Robert Reif
1024fb924d
Add 3d primary and secondary buffer tests.
...
Check reference count at object release.
Remove redundant cooperative level setting.
2003-05-22 03:39:32 +00:00
Alexandre Julliard
92bfe2269b
Don't use Wine debugging API in tests.
2003-04-13 01:09:23 +00:00
Robert Reif
db68f33a5e
Changed capture format printing to hex.
2003-04-11 00:35:50 +00:00
Robert Reif
5a1439cf23
Fixed a bug where a capture device was used after it failed to open
...
due to a missing driver.
Added tests to try all possible combinations of sample rate, sample
size and mono/stereo.
2003-03-07 20:36:47 +00:00
Robert Reif
15cc17fbcf
Fixed code to handle full duplex properly.
...
Added support for capture driver (disabled).
Fixed direct sound capture test to handle notifications properly.
2003-03-04 02:12:34 +00:00
Robert Reif
490d2a7bc2
Fixed a problem getting the GUID to compile under windows and wine.
2003-02-24 20:42:59 +00:00
Robert Reif
5be7f69d72
Added support for direct sound capture and a real direct sound capture
...
driver. Capture now works with some skipping. Full duplex does not but
I will be working on that next.
2003-02-15 00:01:17 +00:00
Gerald Pfeifer
61e9670d31
#include <stdlib.h> instead of the non-standard <malloc.h>.
2003-01-20 23:27:27 +00:00
Francois Gouget
336d8fe298
SetFormat may not change the primary buffer format as requested.
...
Dump the effective format and prepare the tone signal accordingly.
Play tones from the secondary buffers at -3dB rather than -12dB.
Always print the volume the tone is going to be played at.
Remove the gamedev URL.
2003-01-16 00:19:49 +00:00
Francois Gouget
3b761a6b39
Add the ability of playing a test tone when in interactive mode.
...
Test both primary and secondary buffers.
2003-01-02 23:08:57 +00:00
Francois Gouget
a542770c55
Extend the test by creating a PrimaryBuffer object and perform a few
...
basic tests such as querying its characteristics and changing its
format.
Changing the format requires that we call SetcooperativeLevel first,
which means we need an hwnd. So the test must now link with
user32.dll.
2002-12-13 20:27:36 +00:00
Francois Gouget
d523a45bd0
A simple test for IDirectSound.GetCaps.
2002-12-05 19:19:41 +00:00