jgibbon / Talefish

Talefish is a simple directory based audio book player for SailfishOS
GNU General Public License v2.0
21 stars 10 forks source link

made sure, playbackspeed is always set when audio starts #34

Closed thigg closed 3 years ago

thigg commented 3 years ago

fixes #33

jgibbon commented 3 years ago

Wow, I wasn't aware pitch correction seems to be coming, that is awesome! I've tried numerous times to implement pitch correction from inside the app but nothing worked to my satisfaction.

Also I actually thought that I tested playback speed with the previous rework of the player. Thanks for all your efforts (including qtmultimedia), I'm really stoked and can barely wait for the first SFOS release to include this!

The change in this PR seems to make sense, but I'll have some time testing it (and making a new release) in the next days or next weekend, even if it's just those two lines setting the speed plus the nicer equality check.

jgibbon commented 3 years ago

Sadly, this does have some problems I didn't catch while having a first look:

I'm really curious if your changes worked in the patched qtmultimedia you seem to have installed…

A possible workaround (seeking to somewhere close to the current position, sadly sometimes resulting in some stutter) kind of works when used after seekableChanged (and after setting a new playbackSpeed in the options). I'll have to test a bit more to possibly reduce the side effects (and with a few more file types), but I may include something like that again soon-ish. (I had that workaround at some point but could have sworn it worked after one upgrade.) I'd then love to remove that workaround (again) should it not be necessary anymore in the future.

Nevertheless, thank you very much for taking the time and effort to make me aware of this and trying to fix it.

thigg commented 3 years ago

Yes I already noticed that its not working perfectly. I agree that this is most likely a bug in QT. Maybe we can report a bug for this on the forum if we can pin it down.

jgibbon commented 3 years ago

Issue is now handled by the 'seek workaround' in 0.7-1 (on openrepos for now). Thanks again!