[Kde-games-devel] sound in kpat

Wolfgang Rohdewald wolfgang at rohdewald.de
Sun Aug 22 12:28:34 CEST 2010


Hi Parker,

I just saw your commit about initial sound in kpat.

Those problems with phonon not playing short files
in full seem familiar - I found many complaints 
about this when googling. See my comments in
kajongg/src/sound.py

I believe there was no problem with phonon
simultaneously playing several sounds, but I a not
sure about this

Maybe you want to look at how Andreas Scherf solved
it in KBounce: kbounce/sound.*

This seems like a good candidate for libkgame BTW

when I tried his solution in kajongg, I got a new
thread whenever I played a sound, they stayed all
alive until process end. So I went back to calling
ogg123 asynchronously in a subprocess -there is
a small latency but it is still fast enough for 
kajongg and sounds can overlap (they have to 
for kajongg)

-- 
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-games-devel/attachments/20100822/5bc8d667/attachment.htm 


More information about the kde-games-devel mailing list