Skip to content

Commit

Permalink
Fix issue with mute controls
Browse files Browse the repository at this point in the history
Fix a bug with the mute controls not working. Add troubleshooting to
README.md.
  • Loading branch information
m-pilia committed Feb 17, 2019
1 parent 55fc01c commit 261e406
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@ language you are adding).
request on
GitHub](https://github.com/m-pilia/plasma-applet-ambientnoise/pulls).

# Troubleshooting

In case something seems not to be working, launch the plasmoid in debug mode
from a console, with `plasmoidviewer -a org.kde.plasma.ambientnoise` or
`plasmawindowed org.kde.plasma.ambientnoise`, and look for relevant log
messages. Especially when it comes to audio playback, most of the troubles come
from bad configuration of the multimedia back-end, or missing plugins.

If no audio is played, or the audio plays but the volume controls do not work,
or if you see messages like `Error: "The autoaudiosink element is missing."` or
`Warning: "No volume control found"`, try installing
[gst-plugins-good](https://gstreamer.freedesktop.org/modules/gst-plugins-good.html).

# License
The project is licensed under GPL 3. See [LICENSE](./LICENSE)
file for the full license.
2 changes: 1 addition & 1 deletion plasmoid/contents/ui/NoiseListItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ PlasmaComponents.ListItem {
Audio {
id: player
loops: Audio.Infinite
volume: muted ? 0.0 : Js.computeVolume(slider.value)
volume: Js.computeVolume(slider.value * slider.enabled)
autoPlay: root.playing
}
}

0 comments on commit 261e406

Please sign in to comment.