Re: Re: 2.2, es1370, stereo, 8bit

Michael Mess (michael@kawo2.rwth-aachen.de)
Mon, 30 Aug 1999 18:52:58 +0200


Hi!

I used kde to play the file when a message box opens.

Also I use wavplay.cc which I wrote myself.
It calls

sound = open("/dev/dsp", O_RDWR);
status = ioctl(sound, SOUND_PCM_WRITE_BITS, &arg); /*
Bits/sample */
status = ioctl(sound,SOUND_PCM_WRITE_CHANNELS, &arg); /* channels */
status=ioctl(sound,SOUND_PCM_WRITE_RATE, &arg); /* samplingrate */

Then data is written to the device.

The sound is awful on /dev/dsp. It is good on /dev/dsp1.

The file was:

http://michael.kawo2.rwth-aachen.de/~michael/download/warning1.wav

Greetings, Michael

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/