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

Wakko Warner (wakko@animx.eu.org)
Mon, 30 Aug 1999 15:23:59 -0400


> Hi!

Actually, it was micheal that I was helping with this.

> 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.

This file is a stereo 22k sample (8bit) try in your program to force it mono
44k and see if it's any different.

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

This was the same file I was playing with as well.

-- 
 Lab tests show that use of micro$oft causes cancer in lab animals

- 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/