Rename audio category to playback
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 30 Jan 2026 14:33:58 +0000 (15:33 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 30 Jan 2026 14:33:58 +0000 (15:33 +0100)
music_assistant/constants.py
music_assistant/controllers/streams/streams_controller.py

index 1e9cfddff9bb0dcc1aeda516e36c07613022d078..cba20ceebfd289a8f8c37649a452da142a8feb81 100644 (file)
@@ -173,7 +173,7 @@ CONF_ENTRY_FLOW_MODE = ConfigEntry(
     type=ConfigEntryType.BOOLEAN,
     label="Enforce Gapless playback with Queue Flow Mode streaming",
     default_value=False,
-    category="audio",
+    category="protocol_generic",
     advanced=True,
     requires_reload=True,
 )
@@ -202,7 +202,7 @@ CONF_ENTRY_OUTPUT_CHANNELS = ConfigEntry(
     ],
     default_value="stereo",
     label="Output Channel Mode",
-    category="audio",
+    category="protocol_generic",
     advanced=True,
     requires_reload=True,
 )
@@ -213,7 +213,7 @@ CONF_ENTRY_VOLUME_NORMALIZATION = ConfigEntry(
     label="Enable volume normalization",
     default_value=True,
     description="Enable volume normalization (EBU-R128 based)",
-    category="audio",
+    category="playback",
     requires_reload=True,
 )
 
@@ -225,7 +225,7 @@ CONF_ENTRY_VOLUME_NORMALIZATION_TARGET = ConfigEntry(
     label="Target level for volume normalization",
     description="Adjust average (perceived) loudness to this target level",
     depends_on=CONF_VOLUME_NORMALIZATION,
-    category="audio",
+    category="playback",
     advanced=True,
     requires_reload=True,
 )
@@ -236,7 +236,7 @@ CONF_ENTRY_OUTPUT_LIMITER = ConfigEntry(
     label="Enable limiting to prevent clipping",
     default_value=True,
     description="Activates a limiter that prevents audio distortion by making loud peaks quieter.",
-    category="audio",
+    category="playback",
     advanced=True,
     requires_reload=True,
 )
@@ -257,7 +257,7 @@ CONF_ENTRY_SMART_FADES_MODE = ConfigEntry(
     " between tracks.\n"
     "- 'Standard Crossfade': Regular crossfade that crossfades the last/first x-seconds of a "
     "track.",
-    category="audio",
+    category="playback",
     requires_reload=True,
 )
 
@@ -271,7 +271,7 @@ CONF_ENTRY_CROSSFADE_DURATION = ConfigEntry(
     " 'Enable Smart Fade' has been set to 'Standard Crossfade' or when a Smart Fade fails",
     depends_on=CONF_SMART_FADES_MODE,
     depends_on_value="standard_crossfade",
-    category="audio",
+    category="playback",
     advanced=True,
     requires_reload=True,
 )
@@ -294,7 +294,7 @@ CONF_ENTRY_OUTPUT_CODEC = ConfigEntry(
     "Some players however do not support FLAC and require the stream to be packed "
     "into e.g. a lossy mp3 codec or you like to save some network bandwidth. \n\n "
     "Choosing a lossy codec saves some bandwidth at the cost of audio quality.",
-    category="audio",
+    category="protocol_generic",
     advanced=True,
     requires_reload=True,
 )
@@ -332,7 +332,7 @@ CONF_ENTRY_SYNC_ADJUST = ConfigEntry(
     description="If this player is playing audio synced with other players "
     "and you always hear the audio too early or late on this player, "
     "you can shift the audio a bit.",
-    category="audio",
+    category="protocol_generic",
     advanced=True,
     requires_reload=True,
 )
@@ -434,7 +434,7 @@ CONF_ENTRY_SAMPLE_RATES = ConfigEntry(
     default_value=[f"44100{MULTI_VALUE_SPLITTER}16", f"48000{MULTI_VALUE_SPLITTER}16"],
     required=True,
     label="Sample rates supported by this player",
-    category="audio",
+    category="protocol_generic",
     advanced=True,
     description="The sample rates (and bit depths) supported by this player.\n"
     "Content with unsupported sample rates will be automatically resampled.",
@@ -452,7 +452,7 @@ CONF_ENTRY_HTTP_PROFILE = ConfigEntry(
     ],
     default_value="no_content_length",
     label="HTTP Profile used for sending audio",
-    category="audio",
+    category="protocol_generic",
     advanced=True,
     description="This is considered to be a very advanced setting, only adjust this if needed, "
     "for example if your player stops playing halfway streams or if you experience "
@@ -498,7 +498,7 @@ CONF_ENTRY_ENABLE_ICY_METADATA = ConfigEntry(
     depends_on_value_not=False,
     default_value="disabled",
     label="Try to inject metadata into stream (ICY)",
-    category="audio",
+    category="protocol_generic",
     advanced=True,
     description="Try to inject metadata into the stream (ICY) to show track info on the player, "
     "even when flow mode is enabled.\n\nThis is called ICY metadata and is what is used by "
@@ -536,7 +536,7 @@ CONF_ENTRY_SUPPORT_GAPLESS_DIFFERENT_SAMPLE_RATES = ConfigEntry(
     "Only enable this option if your player actually support this, otherwise you may "
     "experience audio glitches during transitioning between tracks.",
     default_value=False,
-    category="audio",
+    category="protocol_generic",
     advanced=True,
     requires_reload=True,
 )
index b06081eca7f41dbdc2b991f50f8f88848a94edb3..eae753e3dce46f2836e061f6d296b6b668398eed 100644 (file)
@@ -203,7 +203,7 @@ class StreamsController(CoreController):
                 "If you run Music Assistant on a capable device with enough memory, "
                 "enabling this option is strongly recommended.",
                 required=False,
-                category="audio",
+                category="playback",
             ),
             ConfigEntry(
                 key=CONF_VOLUME_NORMALIZATION_RADIO,
@@ -214,7 +214,7 @@ class StreamsController(CoreController):
                     ConfigValueOption(x.value.replace("_", " ").title(), x.value)
                     for x in VolumeNormalizationMode
                 ],
-                category="audio",
+                category="playback",
             ),
             ConfigEntry(
                 key=CONF_VOLUME_NORMALIZATION_TRACKS,
@@ -225,7 +225,7 @@ class StreamsController(CoreController):
                     ConfigValueOption(x.value.replace("_", " ").title(), x.value)
                     for x in VolumeNormalizationMode
                 ],
-                category="audio",
+                category="playback",
             ),
             ConfigEntry(
                 key=CONF_VOLUME_NORMALIZATION_FIXED_GAIN_RADIO,
@@ -233,7 +233,7 @@ class StreamsController(CoreController):
                 range=(-20, 10),
                 default_value=-6,
                 label="Fixed/fallback gain adjustment for radio streams",
-                category="audio",
+                category="playback",
             ),
             ConfigEntry(
                 key=CONF_VOLUME_NORMALIZATION_FIXED_GAIN_TRACKS,
@@ -241,7 +241,7 @@ class StreamsController(CoreController):
                 range=(-20, 10),
                 default_value=-6,
                 label="Fixed/fallback gain adjustment for tracks",
-                category="audio",
+                category="playback",
             ),
             ConfigEntry(
                 key=CONF_ALLOW_CROSSFADE_SAME_ALBUM,
@@ -250,7 +250,7 @@ class StreamsController(CoreController):
                 label="Allow crossfade between tracks from the same album",
                 description="Enabling this option allows for crossfading between tracks "
                 "that are part of the same album.",
-                category="audio",
+                category="playback",
             ),
             ConfigEntry(
                 key=CONF_PUBLISH_IP,