All of lore.kernel.org
 help / color / mirror / Atom feed
* Crack sounds in playback
@ 2005-08-05 11:05 Hynek Hanke
  2005-08-05 12:20 ` Clemens Ladisch
  0 siblings, 1 reply; 5+ messages in thread
From: Hynek Hanke @ 2005-08-05 11:05 UTC (permalink / raw)
  To: alsa-devel


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-08-05 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2005-08-05 12:49     ` Clemens Ladisch
2005-08-05 13:03       ` Hynek Hanke

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.