From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Tla/lka Subject: Re: Re: [Alsa-user] AD1985 full-duplex(?) Date: Wed, 8 Sep 2004 19:15:37 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20040908171537.GC4584@sunrise.pg.gda.pl> References: <200408310852.i7V8qSKk023731@www4.pobox.sk> <20040906204559.GA4584@sunrise.pg.gda.pl> <20040907103408.GB4584@sunrise.pg.gda.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from sunrise.pg.gda.pl (sunrise.pg.gda.pl [153.19.40.230]) by alsa.alsa-project.org (ALSA's E-mail Delivery System) with ESMTP id 9053D2A8 for ; Wed, 8 Sep 2004 19:15:41 +0200 (MEST) Content-Disposition: inline In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Jaroslav Kysela Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Tue, Sep 07, 2004 at 03:40:04PM +0200, Jaroslav Kysela wrote: > The forward should work for the dmix plugin. Could you send me a little > code which shows the error? I must test it because after changes it doesn't shows an error. BTW another case: if avail = snd_pcm_available() > alsa.buffer_size then I think that frames_to_forward = avail - alsa.buffer_size now I do err = snd_pcm_forward(pcm, frames_to_forward) and returned err is equal to avail Why? What is the correct value of frames to forward in emulated OSS buffer: frames_to_forward or returned err value? avail % alsa.buffer_size == (avail - alsa.buffer_size) % alsa.buffer_size in this case which means the same ofs in ALSA ring buffer. But OSS ring buffer size is not equal to ALSA ring buffer size so only one value is proper for OSS appl_ptr increasing. IMHO frames_to_forward but maybe I am wrong. Regards -- Adam Tla/lka mailto:atlka@pg.gda.pl ^v^ ^v^ ^v^ System & Network Administration Group ~~~~~~ Computer Center, Gdansk University of Technology, Poland PGP public key: finger atlka@sunrise.pg.gda.pl ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click