All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hynek Hanke <hanke@brailcom.org>
To: alsa-devel@alsa-project.org
Subject: Crack sounds in playback
Date: Fri, 5 Aug 2005 13:05:53 +0200	[thread overview]
Message-ID: <20050805110553.GB32027@brailcom.cz> (raw)


Hello everyone,

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. I open the device
before playing each track and close it after that. Sometimes, I interrupt the
sound in the middle through snd_pcm_drop() and immediatelly close the device.

I'm setting the usual hw parameters. From software parameters, I set only
avail_min at the end, when I need to ,,drain''.

The playback seems good now, but my colleague is reporting he hears some crack
sounds on his SoundBlaster Platinum. They appear mostly at the beginning and at
the end, but in the middle sometimes too. They appear often.

I've examined the log and the device does never get to XRUN or SUSPEND, except
for the last stage, when I set avail_min to the size of the buffer and wait
until it's empty -- but that's expected behavior. None of snd_pcm_ calls
returns any error.

Any ideas of what am I doing wrong or how to debug this?

Thank you,
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 11:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-05 11:05 Hynek Hanke [this message]
2005-08-05 12:20 ` Crack sounds in playback Clemens Ladisch
2005-08-05 12:29   ` Hynek Hanke
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=20050805110553.GB32027@brailcom.cz \
    --to=hanke@brailcom.org \
    --cc=alsa-devel@alsa-project.org \
    /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.