Allow WAV with bit depth above 16 bits
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 4 Dec 2025 19:59:57 +0000 (20:59 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Thu, 4 Dec 2025 19:59:57 +0000 (20:59 +0100)
music_assistant/controllers/streams/streams_controller.py

index c5a2066649e6ccbe01415bce5b7b91075d99fe09..4e5bab0a8e213092578338c22989a801f94c1e62 100644 (file)
@@ -1821,9 +1821,6 @@ class StreamsController(CoreController):
             # no point in having a higher bit depth for lossy formats
             output_bit_depth = 16
             output_sample_rate = min(48000, output_sample_rate)
-        if content_type == ContentType.WAV and output_bit_depth > 16:
-            # WAV 24bit is not widely supported, fallback to 16bit
-            output_bit_depth = 16
         if output_format_str == "pcm":
             content_type = ContentType.from_bit_depth(output_bit_depth)
         return AudioFormat(