From alsa-user-owner@alsa.jcu.cz  Wed Nov 11 22:25:41 1998
Received: from entry.jcu.cz (IDENT:perex@entry.jcu.cz [160.217.1.111])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id WAA23808;
	Wed, 11 Nov 1998 22:25:33 +0100
Date: Wed, 11 Nov 1998 22:25:33 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: Lars Bensmann <lars@skynet.e.ruhr.de>
cc: alsa-user@alsa.jcu.cz
Subject: Re: /dev/audio-support
In-Reply-To: <19981111221548.A15541@skynet>
Message-ID: <Pine.LNX.3.96.981111222307.4231F-100000@entry.jcu.cz>
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

On Wed, 11 Nov 1998, Lars Bensmann wrote:

> Hi,
> 
> On Wed, Nov 11, 1998 at 05:11:10PM +0100, Jaroslav Kysela wrote:
> > On Wed, 11 Nov 1998, Lars Bensmann wrote:
> > 
> > > 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?
> > 
> > Nothing wrong.. Bug in driver... Can you check bellow patch?
> > 
> > Index: gus_pcm.c
> [snip]
> 
> Thanks for the patch. It's a little better, but the sound quality isn't
> thrilling either. And now, if I try to play back /tmp/test.au with aplay
> it still reports "Unsigned 8-bit, Speed 8000 Hz, Mono" and it sounds
> awful. (arecord and then aplay still work great)

This is good... If you record file with 'cat /dev/audio > test.au' and
plays this contents back via aplay, aplay thinks that this file is
unsigned 8-bit mono format (it doesn't have right .au header).

You must force mu-Law with 'aplay -p ulaw file.au' or record file with
'arecord -u file.au'...

							Jaroslav

-----
Jaroslav Kysela <perex@jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic


