Skip to content

Commit d5f4b44

Browse files
authored
Can you add the new environment variable for the **MixRamp** option? #380 (#438)
1 parent c081f5b commit d5f4b44

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ ZEROCONF_ENABLED|Set to `yes` to enable, disabled by default.
157157
ZEROCONF_NAME|Set zeroconf name, used only if `ZEROCONF_ENABLED` is set to `yes`
158158
HYBRID_DSD_ENABLED|Hybrid dsd is enabled by default, set to `no` to disable. Disabled when at least one PulseAudio output is created.
159159
OPUS_DECODER_ENABLED|Defaults to `yes`, if set to `no`, the opus decoder will be disabled.
160+
MIXRAMP_ANALYZER_ENABLED|Enable MixRamp support. Set to `yes` to enable
160161
AUDIO_BUFFER_SIZE|Adjust the size of the internal audio buffer. Default is `4 MB` (4 MiB).
161162
MAX_ADDITIONAL_OUTPUTS_BY_TYPE|The maximum number of outputs by type, defaults to `20`
162163
RESTORE_PAUSED|If set to `yes`, then MPD is put into pause mode instead of starting playback after startup. Default is `no`.
@@ -380,7 +381,6 @@ FIFO_OUTPUT_PATH|Path of the fifo file
380381

381382
Refer to the MPD [documentation](https://mpd.readthedocs.io/en/stable/plugins.html#snapcast) for the meaning of the variables.
382383

383-
384384
### Examples
385385

386386
See some usage examples [here](https://github.com/GioF71/mpd-alsa-docker/blob/main/doc/example-configurations.md).

app/bin/run-mpd.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,14 @@ echo "replaygain_missing_preamp \"${REPLAYGAIN_MISSING_PREAMP}\"" >> $MPD_ALSA_C
717717
echo "replaygain_limit \"${REPLAYGAIN_LIMIT}\"" >> $MPD_ALSA_CONFIG_FILE
718718
echo "volume_normalization \"${VOLUME_NORMALIZATION}\"" >> $MPD_ALSA_CONFIG_FILE
719719

720+
## Enable MixRamp analyzer when requested
721+
if [[ "${MIXRAMP_ANALYZER_ENABLED^^}" == "YES" || "${MIXRAMP_ANALYZER_ENABLED^^}" == "Y" ]]; then
722+
echo "mixramp_analyzer \"yes\"" >> $MPD_ALSA_CONFIG_FILE
723+
elif [[ -n "${MIXRAMP_ANALYZER_ENABLED^^}" ]] && ([[ "${MIXRAMP_ANALYZER_ENABLED^^}" != "NO" || "${MIXRAMP_ANALYZER_ENABLED^^}" != "N" ]]); then
724+
echo "Invalid parameter MIXRAMP_ANALYZER_ENABLED=[${MIXRAMP_ANALYZER_ENABLED}]"
725+
exit 9
726+
fi
727+
720728
if [ -n "${SAMPLERATE_CONVERTER}" ]; then
721729
# try lookup
722730
sr_lookup="${samplerate_converters[${SAMPLERATE_CONVERTER}]}"

doc/change-history.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Date|Major Changes
44
:---|:---
5+
2025-03-27|Add support for MixRamp (see issue [#380](https://github.com/GioF71/mpd-alsa-docker/issues/380))
56
2025-03-27|Bump to version 0.24.2 (see issue [#436](https://github.com/GioF71/mpd-alsa-docker/issues/436))
67
2025-03-24|Bump to version 0.24.1 (see issue [#434](https://github.com/GioF71/mpd-alsa-docker/issues/434))
78
2025-02-21|Corrected wrong variables (see issue [#432](https://github.com/GioF71/mpd-alsa-docker/issues/432))

0 commit comments

Comments
 (0)