Play/repeat a sample loaded on the pulseaudio server

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

 



I want to play a sound loaded on the pulseaudio server (a sample) and repeat
it an arbitrary number
of times in a loop.
I'm using pa_context_play_sample_with_proplist and detecting the end of play
with
 pa_context_set_subscribe_callback  with event type ==
PA_SUBSCRIPTION_EVENT_SINK_INPUT
and PA_SUBSCRIPTION_EVENT_REMOVE
then pa_context_play_sample_with_proplist is called again (from the callback
itself)
but it has a noticeable delay between the end of the previous sound and the
restart
(i've tested it on Mandriva with pulse 0.9.15 and 0.9.19 and 0.9.21)
I guess it could be done playing the sounds from the app itself but I find
very handy
 and probably "faster" to put sounds into server memory and just play them.

It would be great if pa_context_play_sample_with_proplist could especify a
number to repeat the sound,
perhaps a property into proplist.
So any feedback on the idea and orientation on how to implement the loop?

J Bertran.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20091124/55fee967/attachment.htm>


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux