Skip to content

Commit

Permalink
Add setting for volume slider range
Browse files Browse the repository at this point in the history
  • Loading branch information
HEnquist committed Aug 29, 2024
1 parent 5110b4c commit 35eb429
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"apply_config_automatically": False,
"save_config_automatically": False,
"status_update_interval": 100,
"volume_range": 50,
"volume_max": 0,
}

# Default values for the optional settings.
Expand Down
2 changes: 2 additions & 0 deletions backend/settings_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
"apply_config_automatically": {"type": "boolean"},
"save_config_automatically": {"type": "boolean"},
"status_update_interval": {"type": "integer", "minValue": 1},
"volume_range": {"type": "number", "exclusiveMinimum": 0, "maxValue": 200},
"volume_max": {"type": "integer", "minValue": -100, "maxValue": 50},
"custom_shortcuts": {
"type": ["array", "null"],
"items": {
Expand Down
2 changes: 2 additions & 0 deletions config/gui-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ hide_playback_device: false
hide_rate_monitoring: false
apply_config_automatically: false
status_update_interval: 100
volume_range: 50
volume_max: 0
custom_shortcuts:
- section: "Equalizer"
description: |
Expand Down

0 comments on commit 35eb429

Please sign in to comment.