From alsa-user-owner@alsa.jcu.cz  Wed Nov 11 04:25:18 1998
Received: from skynet.e.ruhr.de (qmailr@skynet.e.ruhr.de [141.39.230.41])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id EAA17583
	for <alsa-user@jcu.cz>; Wed, 11 Nov 1998 04:23:14 +0100
Received: (qmail 6514 invoked by uid 1000); 11 Nov 1998 03:23:12 -0000
Date: Wed, 11 Nov 1998 04:23:12 +0100
From: Lars Bensmann <lars@skynet.e.ruhr.de>
To: alsa-user@jcu.cz
Subject: /dev/audio-support
Message-ID: <19981111042312.B6447@skynet>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

Hi,

I just installed alsa-driver 0.2.0 on my Linux 2.0.34 machine with a GUS
Classic.

aplay and arecord work fine and most other stuff. But I have some problems
with /dev/audio.

cat /dev/audio > /tmp/test.au
and then
cat /dev/audio > /dev/audio

playes back the recorded sample with a miserable quality. Is this "normal"
or did I do something wrong?

When I play back /tmp/test.au with aplay it sounds fine, but this doesn't
help me with speak freely which just opens /dev/audio and reads and writes
to it like a file. The audio I receive from some other machine sounds
fine, but the sound I send to some other computer is horrible.

Catting a soundfile where aplay prints the following "Mu-Law, Speed 8000
Hz, Mono" sounds fine. But aplay prints "Unsigned 8-bit, Speed 8000 Hz,
Mono" for /tmp/test.au.

How can I convince /dev/audio to give me data in the proper format? And
why does it give me a different format than the one it expects to get?

cu,
Lars

-- 
"The number of Unix installations has grown to 10, with more expected."
  -- The Unix Programmer's Manual, 2nd Edition, June, 1972

