Version: 4.6 OS: Linux I have a little app that use pyqt and phonon to play wav file generated by espeak the sound are played sequentially with a pause between each sound now with latest version of phonon (I don't know where it started), the sound is played but the finished state or changed state of the player object (from Phonon.createPlayer or even Phonon.MediaObject connected to a Phonon.AuioOutput) is reported at least 3 seconds after the sound ends playing. this obviously completly brake my app. I filled this against phonon-gstreamer because I tried phonon-vlc backend where there is no such problem. It's even worse with phonon-vlc because sound are not played until their end but cut before. It lacks like 500ms or less but it's easily heard. I don't use KDE. Reproducible: Always Steps to Reproduce: I am only experiencing this with my software. I don't run KDE so the only way to reproduce is to run my sft at http://www.sorobanexam.org/static/data/mentalcalculation-0.3.5.1.tar.gz Actual Results: 3 seconds delay means the numver stays 3 seconds when it should vanished after espeak has " pronounced" the sound Expected Results: the number disapear right away after the sound is played meaning the finished or changed state is signaled right after the sound ends
It is definitvly working with phonon 4.5.1 and phonon-gstreamer 4.5.1 so something broke in 4.6.0 may be it's in phonon and not the backend. I have no idea
Well, in Phonon 4.6 (at least I think it we did the change in 4.6) signals are queued in the main event loop, i.e. if you hog the event loop the state change will arrive much later, and 3 seconds sounds like exactly that is happening. at any rate a debug log would be nice http://techbase.kde.org/Development/Tutorials/Debugging/Phonon also just as a reminder for ourselves, the fact that vlc truncates the sound might be an indication that the input file itself is not 'proper'. which would actually conveniently explain the problem.
Created attachment 68927 [details] debug output of my program running phonon 4.5.1
Created attachment 68928 [details] debug output on my prog running phonon 4.6
I can't get any verbose output with phonon 4.6. It works with phonon 4.5.1 PHONON_GST_GST_DEBUG st to 8 changes nothing ! You don't need any info as you confirm yourself the bug, do you ? And you don't see this as a bug ? this breaks Qt/Phonon API, right ?
No, he didn't confirm. Anyway, thanks for the feedback.
I cannot reproduce the bug because your app refuses to output any output for me unfortunately. Anyhow, your 4.6 seems to be compiled with debug off, please recompile with debug on and get a new log.
Git commit 9a26f7df9d0c5147d6918d1e24a7ba861c57528f by Trever Fischer. Committed on 19/02/2012 at 22:27. Pushed by tdfischer into branch 'master'. Wake up our condition variable if we finish within three seconds, which would otherwise hold up emission of finished() FIXED-IN:4.6.1 M +1 -0 gstreamer/mediaobject.cpp http://commits.kde.org/phonon-gstreamer/9a26f7df9d0c5147d6918d1e24a7ba861c57528f
Git commit e79d309b1e42a365ab973e562a62c334dec265c1 by Trever Fischer. Committed on 19/02/2012 at 22:27. Pushed by tdfischer into branch '4.6'. Wake up our condition variable if we finish within three seconds, which would otherwise hold up emission of finished() FIXED-IN:4.6.1 M +1 -0 gstreamer/mediaobject.cpp http://commits.kde.org/phonon-gstreamer/e79d309b1e42a365ab973e562a62c334dec265c1