alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* trigger_stop and buffer overrun
@ 2010-11-18 16:59 Radivoje Jovanovic
  0 siblings, 0 replies; only message in thread
From: Radivoje Jovanovic @ 2010-11-18 16:59 UTC (permalink / raw)
  To: alsa-devel

Is there anu way to tell what is the last position in the buffer filled by
ALSA during the trigger stop callback? The hardware I have is playing sound
but if I turn the DMA off when trigger_stop is executed I will not hear the
end of the file at all. It seems to me that I would have to setup the
hardware to stop playing at the specific address.
On the other hand if I play longer sounds or a song I notice that the song
is skipping a lot and 1 minute sample is over in 20 seconds so it seems to
me that the buffer is overflowing. the pointer callback reads correctly the
current DMA position from the hardware so I am confused how the overflow
happens. Is there any other way ALSA tracks the position where to write the
data?
cheers

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

only message in thread, other threads:[~2010-11-18 16:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18 16:59 trigger_stop and buffer overrun Radivoje Jovanovic

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