1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 00:37:35 +00:00

AudioApplet: Persist settings and respect audio server settings

The audio applet uses the user configuration file "AudioApplet.ini" to
persist its settings, currently only whether the audio percentage should
be shown.

Since the audio server now may have specific settings when it starts,
the audio applet respects them by reading these same settings once when
it starts. Therefore, the audio server settings are not immediately
overridden by the audio applet defaults, as was the case before this
change.

A minor change was done to the way that the audio volume is calculated;
doubles are now used.
This commit is contained in:
kleines Filmröllchen 2021-07-25 21:04:55 +02:00 committed by Andreas Kling
parent d1b0143ba5
commit 65c8fa9f91
2 changed files with 41 additions and 13 deletions

View file

@ -9,4 +9,4 @@ set(SOURCES
)
serenity_app(Audio.Applet ICON audio-volume-high)
target_link_libraries(Audio.Applet LibGUI LibGfx LibAudio)
target_link_libraries(Audio.Applet LibGUI LibGfx LibAudio LibCore)