[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Es piepst und rauscht nur bei cat someSound.wav > /dev/audio



Carsten Fuchs <CarstenFuchs@T-Online.de> writes:

> Bernd Brodesser wrote:
>
>>>   cat /usr/share/sounds/KDE_irgendeinSound.wav > /dev/audio
>> cat macht nichts mit den Daten, sondern gibt es so aus, wie sie
>> sind. wav ist aber kein rawformat.
>
> Laut Linux-Anwenderhandbuch
> http://www.openoffice.de/linux/buch/multimedia.html#SOUND
> sollte es aber gehen. Und ich habe es auf einem anderen Computer auch
> schon erfolgreich ausprobiert!?


Aus kernel-source-2.2.20/Documentation/sound/es1371

| This driver does not support the ALaw/uLaw sample formats.
| ALaw is the default mode when opening a sound device
| using OSS/Free. The reason for the lack of support is
| that the hardware does not support these formats, and adding
| conversion routines to the kernel would lead to very ugly
| code in the presence of the mmap interface to the driver.
| And since xquake uses mmap, mmap is considered important :-)
| and no sane application uses ALaw/uLaw these days anyway.
| In short, playing a Sun .au file as follows:
|
| cat my_file.au > /dev/dsp
|
| does not work. Instead, you may use the play script from
| Chris Bagwell's sox-12.14 package (available from the URL
| below) to play many different audio file formats.


Alles klar?
 
Frank



Reply to: