From alsa-user-owner@alsa.jcu.cz  Mon Oct 26 13:54:23 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 NAA09190;
	Mon, 26 Oct 1998 13:34:30 +0100
Date: Mon, 26 Oct 1998 13:34:30 +0100 (CET)
From: Jaroslav Kysela <perex@jcu.cz>
To: Sean Cross <secross@whidbey.com>
cc: alsa-user@jcu.cz
Subject: Re: Ensoniq ES1371: Strange problem with alsasound when running quake.
In-Reply-To: <3634052C.5CDBEDB5@whidbey.com>
Message-ID: <Pine.LNX.3.96.981026133019.15986D-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 Sun, 25 Oct 1998, Sean Cross wrote:

> Jaroslav Kysela wrote:
> > 
> > On Sun, 25 Oct 1998, Sean Cross wrote:
> > 
> > > Hello, I have been running the latest alsasound(0.2.0-pre8) and
> > > everything in the package works great,
> > > exept when running quake, the sound rapidly turns on and off. (about
> > > every 1/4 second)
> > >
> > > I have tryed the OSS shareware demo and the sound never cut out
> > > when running quake.
> > > (I would rather be running alsa sound :)
> > 
> > Can you see if some underruns are counted when quake is running? Try 'cat
> > /proc/asound/0/pcm0' while quake is running (from another console).
> > 
> 
> OK, I got:
> ---------------------------------------------------
> ES1371 DAC2/ADC
> 
> Playback
>   Mode           : OSS compatible [mmap]
>   Format         : Signed 16-bit Little Endian
>   Rate           : 11024Hz [requested 11025Hz]
>   Channels       : 2
>   Buffer size    : 131072
>   Buffer used    : 131072
>   Fragments      : 16
>   Fragment size  : 8192
>   Underruns      : 0
>   Total underruns: 1135
> Record
>   Mode           : OSS compatible [mmap]
>   Format         : Signed 16-bit Little Endian
>   Rate           : 11025Hz [requested 11025Hz]
>   Channels       : 2
>   Buffer size    : 131072
>   Buffer used    : 0
>   Fragments      : 0
>   Fragment size  : 0
>   Overruns       : 0
>   Total overruns : 0
> 
> ----------------------------------------
> 
> So should i increase the buffer size?

I remember that old versions of Quake 1 have trouble with 128k DMA buffer,
maybe you can try set your buffer to 64kB (pass snd_dac2_frame_size=64 as
option to snd-audiopci module).

							Jaroslav

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


