OSDN Git Service

okular: map the sound action volume to value appropriate for KAudioPlayer
authorIvailo Monev <xakepa10@gmail.com>
Sun, 27 Nov 2022 19:35:10 +0000 (21:35 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 27 Nov 2022 19:35:10 +0000 (21:35 +0200)
commit8ed83be2bf80799f2dcb4d3c698bb12dbd972751
tree28f6300ea3fc36fe1f045aed1463ed16cb746db8
parentc6d2c74219811dcaafdbf7a0fd15f1e0e41e1920
okular: map the sound action volume to value appropriate for KAudioPlayer

fixes regression since the port to KAudioPlayer, the use of qBound() is
there to make sure speakers (or head-phones) do not blow up while the
assert is for developers to know that Okular generator is trying to use
value outside the range

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
okular/core/audioplayer.cpp