alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* snd_pcm_drain causes repeated playback of last buffer contents
@ 2014-03-12 12:20 Sanjeev Chugh
  0 siblings, 0 replies; only message in thread
From: Sanjeev Chugh @ 2014-03-12 12:20 UTC (permalink / raw)
  To: alsa-devel

Hello,



I'm not an alsa expert at all but trying to learn alsa.



I'm experiencing an issue where on snd_pcm_drain() the slave PCM driven via
plugin DSHARE is not filled with silence.

Result is endless playback of buffer content until pcm is closed.



I'm trying to analyze what could be the reason for this. In my
understanding in Alsa, audio data is played as a unit of period. Once
playing one period is finished, then next period will be played. If period
has lesser frames than the period size, audio data previously played will
be re-played until pcm is closed out. Could it be a reason for this
continuous playback when snd_pcm_drain is called ?



I'm not even sure if it is desired behavior that silence be padded after
driver drains the pcm :( I guess it is too big as a bug to be ignored.



Thanks

Pthread

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-12 12:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-12 12:20 snd_pcm_drain causes repeated playback of last buffer contents Sanjeev Chugh

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).