Files
mpd/src/output
Jzavrk dac2c4df9b output/plugins/SndioOutputPlugin: Fix sndio volume calculation
This commit addresses issues #2226 and MusicPlayerDaemon/ncmpc#95.
MPD and sndio volume ranges being different, the formula to transform a
value from one set to the other is in the form of `(a * x + b) / c`
where:
 - a = output set max value
 - b = adjustment term
 - c = input set max value
Previous calculation formula had `b = 0`, scaling values too low and
rendering increment impossible. Having `b = out_maxval / 2` balances the
transformation, ensuring a better spread of values across the output
range.

Closes #2226
2025-03-12 12:24:00 +01:00
..
2023-03-06 16:14:15 +01:00
2024-07-29 17:02:33 +02:00
2023-03-06 16:14:15 +01:00
2025-02-01 18:05:13 +01:00
2024-11-19 10:59:35 +00:00
2024-11-05 12:28:41 +01:00
2024-11-08 18:24:48 +01:00