From alsa-user-owner@alsa.jcu.cz  Wed Dec  2 21:13:13 1998
Received: from tjlee.suits.kiva.net (qmailr@tjlee.suits.kiva.net [206.97.68.12])
	by marvin.jcu.cz (8.9.1a/8.9.1) with SMTP id VAA31181
	for <alsa-user@alsa.jcu.cz>; Wed, 2 Dec 1998 21:02:40 +0100
Received: (qmail 1444 invoked by uid 5511); 2 Dec 1998 20:03:21 -0000
Message-ID: <19981202200321.1442.qmail@tjlee.suits.kiva.net>
To: alsa-user@alsa.jcu.cz
Subject: Quake problem still there
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 02 Dec 1998 15:03:21 -0500
From: Tom Lee <tjlee@kiva.net>
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list

     In the archives I saw a problem that was posted back on October 25 by 
Sean Cross:

> 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 am experiencing this exact same problem with 0.2.0-pre10.  I am able 
to play .au and .wav files, and I can listen to RealAudio and MIDI files, 
but for some reason I'm getting this intermittent sound on Quake.  Also, 
when I am playing xboing, the sounds (which are just .au files really) seem 
very delayed; when one is already playing and another is started, something 
is waiting until the currently-playing sound ends before starting the new 
one.  I have no idea whether it's supposed to behave that way or not.

     I am finding that ALSA is working much better than the OSS-based sound 
drivers that came with the RedHat 5.2 kernel.  Playing .au and .wav files 
gave a bizarre vibrato effect, and RealAudio and MIDI files on the Web 
didn't work (although for some reason Timidity was able to play MIDI files 
fine locally).  There's just this strange Quake problem.

     In response to Sean Cross, Jaroslav Kysela suggested:

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

     It didn't look like Sean Cross ever replied to say whether this had
worked.  Well, I tried this, but it had no effect.  Here is the output from
'cat /proc/asound/0/pcm0' while Quake was running:

Playback
  Mode           : OSS compatible [mmap]
  Format         : Signed 16-bit Little Endian
  Rate           : 11024Hz [requested 11025Hz]
  Channels       : 2
  Buffer size    : 65536
  Buffer used    : 65536
  Fragments      : 8
  Fragment size  : 8192
  Underruns      : 0
  Total underruns: 0
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

     And here is my /etc/conf.modules:

alias eth0 3c509
alias net-pf-3 off
alias net-pf-4 off
alias net-pf-5 off
alias char-major-14 snd
alias snd-minor-oss-0 snd-audiopci
alias snd-minor-oss-3 snd-pcm1-oss
alias snd-minor-oss-4 snd-pcm1-oss
alias snd-minor-oss-5 snd-pcm1-oss
alias snd-minor-oss-12 snd-pcm1-oss
alias snd-card-0 snd-audiopci
options snd snd_major=14 snd_cards_limit=1
options snd-interwave snd_index=1 snd_id="audiopci"
options snd-audiopci snd_index=1 snd_dac1_frame_size=64 snd_dac2_frame_size=64

     I have AudioPCI 1371 sound hardware (not a card; it's built into the 
motherboard).

-- 
    - Tom Lee - tjlee@kiva.net - Kiva Networking - Bloomington, Indiana -



