Ok, here's output from dsound_test.exe, I heard all 6 sounds:
C:\Documents and Settings\sauron\Desktop>dsound_test.exe dsound dsound.c:373:Testing Primary Sound Driver - dsound.c:387: DirectSound Caps: flags=0x00000b5b secondary min=8000 max=48000 dsound.c:398: Testing the primary buffer dsound.c:240: Caps: flags=0x00000009 size=32768 dsound.c:254: tag=0x0001 22050x8x2 avg.B/s=44100 align=2 dsound.c:270: status=0x0000 dsound.c:307: Playing 440Hz LA at 11025x16x2 dsound.c:413: Testing a secondary buffer at 11025x8x1 dsound.c:240: Caps: flags=0x000100e8 size=4410 dsound.c:254: tag=0x0001 11025x8x1 avg.B/s=11025 align=1 dsound.c:270: status=0x0000 dsound.c:307: Playing 440Hz LA at 11025x 8x1 dsound.c:322: volume=0 dsound.c:428: Testing a secondary buffer at 48000x16x2 dsound.c:240: Caps: flags=0x000100e8 size=76800 dsound.c:254: tag=0x0001 48000x16x2 avg.B/s=192000 align=4 dsound.c:270: status=0x0000 dsound.c:307: Playing 440Hz LA at 48000x16x2 dsound.c:322: volume=0 dsound.c:373:Testing AC'97 Sound Card - ichaud.sys dsound.c:387: DirectSound Caps: flags=0x00000b5b secondary min=8000 max=48000 dsound.c:398: Testing the primary buffer dsound.c:240: Caps: flags=0x00000009 size=32768 dsound.c:254: tag=0x0001 22050x8x2 avg.B/s=44100 align=2 dsound.c:270: status=0x0000 dsound.c:307: Playing 440Hz LA at 11025x16x2 dsound.c:413: Testing a secondary buffer at 11025x8x1 dsound.c:240: Caps: flags=0x000100e8 size=4410 dsound.c:254: tag=0x0001 11025x8x1 avg.B/s=11025 align=1 dsound.c:270: status=0x0000 dsound.c:307: Playing 440Hz LA at 11025x 8x1 dsound.c:322: volume=0 dsound.c:428: Testing a secondary buffer at 48000x16x2 dsound.c:240: Caps: flags=0x000100e8 size=76800 dsound.c:254: tag=0x0001 48000x16x2 avg.B/s=192000 align=4 dsound.c:270: status=0x0000 dsound.c:307: Playing 440Hz LA at 48000x16x2 dsound.c:322: volume=0 dsound: 307 tests executed, 0 marked as todo, 0 failures.
Here's the output from winmm_text.exe, I heard all 24 sounds:
C:\Documents and Settings\sauron\Desktop>winmm_test.exe wave wave.c:182:found 1 WaveOut devices wave.c:206: 0: "AC'97 Sound Card" 5.0 (1:100): channels=65535 formats=0fff support=002c wave.c:150:Playing 440Hz LA at 11025x 8x1 0000 wave.c:150:Playing 440Hz LA at 11025x 8x1 0008 wave.c:150:Playing 440Hz LA at 11025x 8x2 0000 wave.c:150:Playing 440Hz LA at 11025x 8x2 0008 wave.c:150:Playing 440Hz LA at 11025x16x1 0000 wave.c:150:Playing 440Hz LA at 11025x16x1 0008 wave.c:150:Playing 440Hz LA at 11025x16x2 0000 wave.c:150:Playing 440Hz LA at 11025x16x2 0008 wave.c:150:Playing 440Hz LA at 22050x 8x1 0000 wave.c:150:Playing 440Hz LA at 22050x 8x1 0008 wave.c:150:Playing 440Hz LA at 22050x 8x2 0000 wave.c:150:Playing 440Hz LA at 22050x 8x2 0008 wave.c:150:Playing 440Hz LA at 22050x16x1 0000 wave.c:150:Playing 440Hz LA at 22050x16x1 0008 wave.c:150:Playing 440Hz LA at 22050x16x2 0000 wave.c:150:Playing 440Hz LA at 22050x16x2 0008 wave.c:150:Playing 440Hz LA at 44100x 8x1 0000 wave.c:150:Playing 440Hz LA at 44100x 8x1 0008 wave.c:150:Playing 440Hz LA at 44100x 8x2 0000 wave.c:150:Playing 440Hz LA at 44100x 8x2 0008 wave.c:150:Playing 440Hz LA at 44100x16x1 0000 wave.c:150:Playing 440Hz LA at 44100x16x1 0008 wave.c:150:Playing 440Hz LA at 44100x16x2 0000 wave.c:150:Playing 440Hz LA at 44100x16x2 0008 wave.c:220:Testing invalid 2MHz format wave: 221 tests executed, 0 marked as todo, 0 failures.
The sounds all seem to be the same exact note and just at different volumes on the first test. Heh, or I'm completely tone deaf.
Francois Gouget wrote:
On Mon, 6 Jan 2003, Glen Kaukola wrote:
Francois Gouget wrote:
I'm not really sure this is what Windows is doing however. I would be interested if people with Windows NT/2000/XP and an i810 soundcard could run both the dsound and the winmm tests and send me the output.
Hi, I hope I've got the type of sound card you're after. I'm pretty sure the i810 module gets loaded when I run Linux.
Anyway, here's the output I get on win2k from dsound_test.exe:
Thanks. I forgot to mention to do the following before running the tests: set WINETEST_INTERACTIVE=1
This will cause them to play test tones and do more tests. I would be interested to know if you hear all the tones and if you could send me the corresponding output of each test.
Glen Kaukola wrote:
Ok, here's output from dsound_test.exe, I heard all 6 sounds:
C:\Documents and Settings\sauron\Desktop>winmm_test.exe wave wave.c:182:found 1 WaveOut devices wave.c:206: 0: "AC'97 Sound Card" 5.0 (1:100): channels=65535 formats=0fff support=002c
Interesting. This indicates that the soundcard supports 11, 22 and 44kHz though what it really supports is probably just 48kHz. But I think only the XP drivers know how to report the 48 and 96kHz formats so that may be normal. However: * either the driver claims these other formats are supported but will in fact convert them to 48kHz, alal Alsa. * or you card is a sofisticated i810 soundcard and really supports all these
wave.c:150:Playing 440Hz LA at 11025x 8x1 0000 wave.c:150:Playing 440Hz LA at 11025x 8x1 0008
So even with WAVE_FORMAT_DIRECT the sound plays fine. Interesting. Do you have Linux installed on this machine? What's the output if you run the test as follows?
WINEOPTIONS="--debugmsg +wave" ../../../tools/runtest -P wine -M winmm.dll -T ../../.. -p winmm_test.exe.so wave.c 2>&1 | grep "OSS dsp out mask"
Assuming you are using OSS, this will tell us exactly what formats OSS thinks the card supports (that's lots of assumptions he?).
C:\Documents and Settings\sauron\Desktop>dsound_test.exe dsound dsound.c:373:Testing Primary Sound Driver - dsound.c:387: DirectSound Caps: flags=0x00000b5b secondary min=8000 max=48000
DirectSound claims that the sound card support any sample rate between 8000 and 48000 Hz. That's interesting because: * we alway return 100 and 100000 as the limits. It seems Windows returns actual values, not that applications use them anyway I suspect. * i810 sound cards normally only supposed to only support 1 sample rate, 48kHz. So maybe Windows 2000 is lying just like Ove said Windows XP lies...
[...]
The sounds all seem to be the same exact note and just at different volumes on the first test. Heh, or I'm completely tone deaf.
Great, that's how it should be. The bug would be if some tone had a different pitch than others (either in dsound or winmm) due to incorrect sound format conversions.
Thanks a lot for this data.
Francois Gouget wrote:
So even with WAVE_FORMAT_DIRECT the sound plays fine. Interesting. Do you have Linux installed on this machine? What's the output if you run the test as follows?
WINEOPTIONS="--debugmsg +wave" ../../../tools/runtest -P wine -M winmm.dll -T ../../.. -p winmm_test.exe.so wave.c 2>&1 | grep "OSS dsp out mask"
Here's what I get: trace:wave:OSS_WaveOutInit OSS dsp out mask=00000010