trigger_stop and buffer overrun

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux