From: Marcel van der Veldt Date: Thu, 4 Dec 2025 19:59:57 +0000 (+0100) Subject: Allow WAV with bit depth above 16 bits X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=96c0eeb86b8234f6413544ee0c422eda1f82fbb7;p=music-assistant-server.git Allow WAV with bit depth above 16 bits --- diff --git a/music_assistant/controllers/streams/streams_controller.py b/music_assistant/controllers/streams/streams_controller.py index c5a20666..4e5bab0a 100644 --- a/music_assistant/controllers/streams/streams_controller.py +++ b/music_assistant/controllers/streams/streams_controller.py @@ -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(