[Okular-devel] Review Request 126214: Allow enqueuing of sound annotations for playback

Albert Astals Cid aacid at kde.org
Wed Dec 2 00:03:09 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126214/#review89015
-----------------------------------------------------------


You are right, the code seems to be architected around the fact that more than one sound can be played at the same time and sounds can be repeated when finished.

You're removed the possibility of the repeating as far as i can see.

For now let's make this simpler and make it so that stop sounds actually only appears if it's playing, and we will think the enqueue a bit more after landing this. ok?


core/audioplayer.h (line 69)
<https://git.reviewboard.kde.org/r/126214/#comment60943>

    Do not change public API without a good reason (it's a typo is not a good reason :D)


- Albert Astals Cid


On des. 1, 2015, 12:33 p.m., Sumit Sahrawat wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126214/
> -----------------------------------------------------------
> 
> (Updated des. 1, 2015, 12:33 p.m.)
> 
> 
> Review request for Okular and Albert Astals Cid.
> 
> 
> Bugs: 326536
>     http://bugs.kde.org/show_bug.cgi?id=326536
> 
> 
> Repository: okular
> 
> 
> Description
> -------
> 
> I understood the bug as asking for a feature to enqueue sounds if sound is currently playing.
> 
> I did not understand why a QHash was being used to manage playbacks, which confused me:
> 
> Q: Does okular support simultaneous playback of multiple sounds?
> 
> If so, I don't think both simultaneous output and enqueuing can be supported in an intuitive way using the right click menu. I've replaced the old QHash with a QQueue, which acts as a playlist of sounds to be played.
> 
> 
> Diffs
> -----
> 
>   core/audioplayer.h b335b5e 
>   core/audioplayer.cpp ab735f3 
>   core/audioplayer_p.h 32fe4de 
>   core/document.cpp 6953b1f 
>   ui/pageview.cpp 3ebf7dc 
>   ui/presentationwidget.cpp e6ecdc5 
> 
> Diff: https://git.reviewboard.kde.org/r/126214/diff/
> 
> 
> Testing
> -------
> 
> No testing done. I couldn't find a document with many sound annotations. I thought I'd create one using Okular, but it doesn't support that yet.
> 
> Albert: What do you use to test this? Can you provide me a link to the same document?
> 
> 
> Thanks,
> 
> Sumit Sahrawat
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20151202/72b3c7c5/attachment-0001.html>


More information about the Okular-devel mailing list