Bug 457846 - Add loudness control
Summary: Add loudness control
Status: RESOLVED FIXED
Alias: None
Product: kasts
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: bart
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-13 17:42 UTC by tobias
Modified: 2023-01-24 20:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tobias 2022-08-13 17:42:43 UTC
A way to control the loudness inside the program would be fantastic.

Even better would be an additional option to set a standard loudness, so that the program does not use 100% by default.
Comment 1 bart 2022-08-15 09:12:22 UTC
The lack of volume control is due to a limitation of the qtmultimedia library.  It's impossible at the moment to have variable playback speed control and volume control at the same time.  Since variable speed is an option which many people use in podcast players, it was decided to give this higher priority.

Having said that, you should still be able to control the app's volume through the "applications" tab in plasma volume control or through the controls on the taskbar entry for kasts (if you're on desktop).  The audio backend will remember the last volume setting.  So it should not be needed to implement that in Kasts itself.

We were already planning to move to a different audio backend (e.g. using gstreamer directly) to solve this problem, but that requires a lot of time to get this implemented, especially across all the platform that are currently supported by qt(multimedia).
Comment 2 tobias 2022-08-16 13:24:27 UTC
(In reply to bart from comment #1)
> The lack of volume control is due to a limitation of the qtmultimedia
> library.  It's impossible at the moment to have variable playback speed
> control and volume control at the same time.  Since variable speed is an
> option which many people use in podcast players, it was decided to give this
> higher priority.
> 
> Having said that, you should still be able to control the app's volume
> through the "applications" tab in plasma volume control or through the
> controls on the taskbar entry for kasts (if you're on desktop).  The audio
> backend will remember the last volume setting.  So it should not be needed
> to implement that in Kasts itself.
> 
> We were already planning to move to a different audio backend (e.g. using
> gstreamer directly) to solve this problem, but that requires a lot of time
> to get this implemented, especially across all the platform that are
> currently supported by qt(multimedia).

Ok, thx for the answer.
The biggest problem I had was that the sound was too loud, but yes once I adjusted it in pulseaudio it stayed that way.
Comment 3 bart 2023-01-23 19:48:23 UTC
Git commit d869358ff5031e4a6976d2bf5bf26278583bfc83 by Bart De Vries.
Committed on 23/01/2023 at 12:29.
Pushed by bdevries into branch 'master'.

Header bar redesign

New scalable header bar design which should scale nicely with height
and width changes by collapsing several elements (putting them into
popups and overflow menus).  The height scaling of the header is
similar to Elisa, where it will use the regular background color when
fully collapsed.
Titles are clickable and will open the relevant pages.  Images are also
clickable and that will open a fullscreen view.
This new design also exposes volume controls both for desktop and mobile
layout.
Related: bug 458331

M  +2    -1    src/CMakeLists.txt
M  +1    -1    src/qml/ChapterListDelegate.qml
A  +438  -0    src/qml/Desktop/DesktopPlayerControls.qml     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +241  -0    src/qml/Desktop/HeaderBar.qml     [License: GPL(v2.0+)]
M  +1    -1    src/qml/DiscoverPage.qml
M  +1    -1    src/qml/EntryPage.qml
M  +1    -0    src/qml/FeedDetailsPage.qml
A  +205  -0    src/qml/FullScreenImage.qml     [License: GPL(v3.0)]
M  +1    -1    src/qml/GenericEntryDelegate.qml
M  +25   -21   src/qml/GenericHeader.qml
D  +0    -314  src/qml/HeaderBar.qml
M  +5    -2    src/qml/ImageWithFallback.qml
R  +0    -0    src/qml/Mobile/BottomToolbar.qml [from: src/qml/BottomToolbar.qml - 100% similarity]
R  +1    -1    src/qml/Mobile/FooterBar.qml [from: src/qml/FooterBar.qml - 099% similarity]
R  +0    -0    src/qml/Mobile/MinimizedPlayerControls.qml [from: src/qml/MinimizedPlayerControls.qml - 100% similarity]
R  +68   -0    src/qml/Mobile/MobilePlayerControls.qml [from: src/qml/PlayerControls.qml - 085% similarity]
M  +13   -2    src/qml/main.qml
M  +7    -5    src/resources.qrc

https://invent.kde.org/plasma-mobile/kasts/commit/d869358ff5031e4a6976d2bf5bf26278583bfc83
Comment 4 tobias 2023-01-24 20:22:44 UTC
(In reply to bart from comment #3)
> Git commit d869358ff5031e4a6976d2bf5bf26278583bfc83 by Bart De Vries.
> Committed on 23/01/2023 at 12:29.
> Pushed by bdevries into branch 'master'.
> 
> Header bar redesign
> 
> New scalable header bar design which should scale nicely with height
> and width changes by collapsing several elements (putting them into
> popups and overflow menus).  The height scaling of the header is
> similar to Elisa, where it will use the regular background color when
> fully collapsed.
> Titles are clickable and will open the relevant pages.  Images are also
> clickable and that will open a fullscreen view.
> This new design also exposes volume controls both for desktop and mobile
> layout.
> Related: bug 458331
> 
> M  +2    -1    src/CMakeLists.txt
> M  +1    -1    src/qml/ChapterListDelegate.qml
> A  +438  -0    src/qml/Desktop/DesktopPlayerControls.qml     [License:
> GPL(3+eV) GPL(v3.0) GPL(v2.0)]
> A  +241  -0    src/qml/Desktop/HeaderBar.qml     [License: GPL(v2.0+)]
> M  +1    -1    src/qml/DiscoverPage.qml
> M  +1    -1    src/qml/EntryPage.qml
> M  +1    -0    src/qml/FeedDetailsPage.qml
> A  +205  -0    src/qml/FullScreenImage.qml     [License: GPL(v3.0)]
> M  +1    -1    src/qml/GenericEntryDelegate.qml
> M  +25   -21   src/qml/GenericHeader.qml
> D  +0    -314  src/qml/HeaderBar.qml
> M  +5    -2    src/qml/ImageWithFallback.qml
> R  +0    -0    src/qml/Mobile/BottomToolbar.qml [from:
> src/qml/BottomToolbar.qml - 100% similarity]
> R  +1    -1    src/qml/Mobile/FooterBar.qml [from: src/qml/FooterBar.qml -
> 099% similarity]
> R  +0    -0    src/qml/Mobile/MinimizedPlayerControls.qml [from:
> src/qml/MinimizedPlayerControls.qml - 100% similarity]
> R  +68   -0    src/qml/Mobile/MobilePlayerControls.qml [from:
> src/qml/PlayerControls.qml - 085% similarity]
> M  +13   -2    src/qml/main.qml
> M  +7    -5    src/resources.qrc
> 
> https://invent.kde.org/plasma-mobile/kasts/commit/
> d869358ff5031e4a6976d2bf5bf26278583bfc83

Thank you very much.
I will try a new build.