alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* XRUN handling
@ 2010-07-06  5:03 melwyn lobo
  2010-07-06  6:29 ` Clemens Ladisch
  2010-07-06 16:16 ` James Courtier-Dutton
  0 siblings, 2 replies; 12+ messages in thread
From: melwyn lobo @ 2010-07-06  5:03 UTC (permalink / raw)
  To: alsa-devel

Hi all,
I have noticed when an Xrun occurs, the bytes between the hw_ptr and
appl_ptr are not copied when both hw and appl pointers are reset in
snd_pcm_prepare().
Consider the following parameters:
  buffer_size  : 22352
  period_size  : 1016
  period_time  : 23038
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 1016
  period_event : 0
  start_threshold  : 22352
  stop_threshold   : 22352
  silence_threshold: 0
  silence_size : 0

In case snd_pcm_playback_avail() is less than stop threshold but
greater than 0, then these bytes are missing after Xrun prepare and
start stage.

Is my analysis correct? If so how do we ensure correct behaviour ie
byte accuracy after Xrun.

Thanks,
M.

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

end of thread, other threads:[~2010-07-19 14:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-06  5:03 XRUN handling melwyn lobo
2010-07-06  6:29 ` Clemens Ladisch
2010-07-06 11:05   ` melwyn lobo
2010-07-06 12:34     ` Clemens Ladisch
2010-07-06 16:16 ` James Courtier-Dutton
2010-07-06 17:46   ` melwyn lobo
2010-07-06 18:39     ` Jaroslav Kysela
2010-07-07  8:11       ` melwyn lobo
2010-07-14 10:17         ` melwyn lobo
2010-07-19 14:37           ` Jaroslav Kysela
2010-07-19 14:43             ` Jaroslav Kysela
2010-07-06 19:37     ` James Courtier-Dutton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).