All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hynek Hanke <hanke@brailcom.org>
To: Clemens Ladisch <clemens@ladisch.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: Crack sounds in playback
Date: Fri, 5 Aug 2005 14:29:40 +0200	[thread overview]
Message-ID: <20050805122940.GC11890@brailcom.cz> (raw)
In-Reply-To: <Pine.HPX.4.33n.0508051415230.3253-100000@studcom.urz.uni-halle.de>

On Fri, Aug 05, 2005 at 02:20:25PM +0200, Clemens Ladisch wrote:
> Hynek Hanke wrote:
> > after all the suggestions (thanks for them), I got the alsa playback working
> > with the non-blocking/polling approach. I'm checking for xrun and suspend
> > states in the poll loop and after I send all the samples, I set avail_min to
> > the whole buffer and poll() until the states gets to XRUN. 
> Underruns will interrupt the playback.  You should set avail_min to
> the period size so that you can fill up the buffer before playback
> gets stopped.

I'm sorry, maybe I didn't explain myself clearly. I set avail_min to this state
and expect to get XRUN only *after* I've sent all the samples to the buffer.
So only at the very end, I get an XRUN and thus I know the playback terminated.
>From the logs, I'm sure there are no XRUNs reported *during* the playback.

With Regards,
Hynek Hanke


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

  reply	other threads:[~2005-08-05 12:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-05 11:05 Crack sounds in playback Hynek Hanke
2005-08-05 12:20 ` Clemens Ladisch
2005-08-05 12:29   ` Hynek Hanke [this message]
2005-08-05 12:49     ` Clemens Ladisch
2005-08-05 13:03       ` Hynek Hanke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050805122940.GC11890@brailcom.cz \
    --to=hanke@brailcom.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.