Return-Path: <gatgul@voicenet.com>
Received: from voicenet.com (IDENT:gat@nppp07.blast.net [207.162.129.107])
	by fireball.blast.net (8.11.1/8.11.1) with ESMTP id f2PL3b307124;
	Sun, 25 Mar 2001 16:03:39 -0500 (EST)
	(envelope-from gatgul@voicenet.com)
Sender: gat
Message-ID: <3ABE5864.1A8BC3A8@voicenet.com>
Date: Sun, 25 Mar 2001 15:43:16 -0500
From: Uncle George <gatgul@voicenet.com>
X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14-7.0 alpha)
X-Accept-Language: en
MIME-Version: 1.0
To: linux-sound@vger.rutgers.edu
CC: scottm@interlog.com, sailer@ife.ee.ethz.ch
Subject: sound under-run's screws up (struct count_info *)->bytes
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I suppose the concept of handling the failure of the process to feed the
"/dev/dsp" device in a timely manner sounds ok.

The problem is that the #of bytes processed keeps going up ( and up and
up ) , even though the program has stopped feeding the i/o channel ( due
to a ^S on a printf() ) . ( SNDCTL_DSP_GETOPTR )

this makes it a little harder to keep track of the buffer stream,
because the # of bytes processed tends to now be greater than the number
of bytes written to the device. You also cant tell when the buffer is
empty ( (struct count_info *)->blocks ) because the blocks count hovers
between 0 + 1 ( i think ).


ANYWAY my expectation of (struct count_info *)->bytes is to reflect the
number of bytes processed that were derived from a user process
write("/dev/dsp" ) . The extra feeding of "/dev/dsp" due to underrun
processing should be hidden from the user.

/gat

