This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello, This is the modified test for the /dev/dsp device. It now uses the libltp framework to report the results. A sample output now looks like this devdsp 1 PASS : ioctl get buffer size=22080 devdsp 2 PASS : ioctl get formats=00000018 devdsp 3 PASS : Play bits= 8 stereo=0 rate=44100 devdsp 4 PASS : Play bits=16 stereo=0 rate=44100 devdsp 5 PASS : Play bits= 8 stereo=1 rate=44100 devdsp 6 PASS : Play bits=16 stereo=1 rate=44100 devdsp 7 PASS : Play bits= 8 stereo=0 rate=22050 devdsp 8 PASS : Play bits=16 stereo=0 rate=22050 devdsp 9 PASS : Play bits= 8 stereo=1 rate=22050 devdsp 10 PASS : Play bits=16 stereo=1 rate=22050 devdsp 11 PASS : Play bits= 8 stereo=0 rate= 8000 devdsp 12 PASS : Play bits=16 stereo=0 rate= 8000 devdsp 13 PASS : Play bits= 8 stereo=1 rate= 8000 devdsp 14 PASS : Play bits=16 stereo=1 rate= 8000 devdsp 15 PASS : Record bits= 8 stereo=0 rate=44100 devdsp 16 PASS : Record bits=16 stereo=0 rate=44100 devdsp 17 PASS : Record bits= 8 stereo=1 rate=44100 devdsp 18 PASS : Record bits=16 stereo=1 rate=44100 devdsp 19 PASS : Record bits= 8 stereo=0 rate=22050 devdsp 20 PASS : Record bits=16 stereo=0 rate=22050 devdsp 21 PASS : Record bits= 8 stereo=1 rate=22050 devdsp 22 PASS : Record bits=16 stereo=1 rate=22050 devdsp 23 PASS : Record bits= 8 stereo=0 rate= 8000 devdsp 24 PASS : Record bits=16 stereo=0 rate= 8000 devdsp 25 PASS : Record bits= 8 stereo=1 rate= 8000 devdsp 26 PASS : Record bits=16 stereo=1 rate= 8000 devdsp 0 INFO : child plays devdsp 0 INFO : forked, child PID=1336 parent records devdsp 27 PASS : Record+Play rate=44100, stereo, 16 bits devdsp 0 INFO : child plays.. devdsp 0 INFO : child done devdsp 0 INFO : forked, child PID=1308 devdsp 0 INFO : parent plays.. devdsp 0 INFO : parent done devdsp 28 PASS : child plays after fork devdsp 0 INFO : child trying to play (should fail).. devdsp 0 INFO : ioctl SNDCTL_DSP_SAMPLESIZE: Mount device busy devdsp 0 INFO : forked, child PID=1600 devdsp 0 INFO : parent plays again.. devdsp 0 INFO : parent done devdsp 29 PASS : child cannot play if parent is already playing devdsp 0 INFO : child records.. devdsp 0 INFO : child done devdsp 0 INFO : forked, child PID=1376 devdsp 0 INFO : parent records.. devdsp 0 INFO : parent done devdsp 30 PASS : child records after fork devdsp 0 INFO : child trying to record (should fail).. devdsp 0 INFO : ioctl SNDCTL_DSP_SAMPLESIZE: Mount device busy devdsp 0 INFO : forked, child PID=1296 devdsp 0 INFO : parent records again .. devdsp 0 INFO : parent done devdsp 31 PASS : child cannot record if parent is already recording devdsp 32 PASS : Set parameters from wave file header This test now consists of two files, devdsp.c and devdsp_okay.h. In comparison to the previous test, I have added the .wav file test and -oops- found a small bug in the fhandler related to .wav file playing: It should discard the wave header and play the samples only. Currently it plays the header also - you will hear a thumping sound at the start of the sound sample. I will submit a patch soon (just 3 lines have to be changed). I have attached the files for the test because they are quite large. To make them part of "make check", I put them into src/winsup/testsuite/winsup.api, no other change was needed.
Attachment:
devdsp_okay.h
Description: Binary data
Attachment:
devdsp.c
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |