Skip to content

Commit 293810d

Browse files
authored
[Feature] Drop support for NULL as OUTPUT_MODE #238 (#239)
1 parent 17ea581 commit 293810d

File tree

4 files changed

+2
-23
lines changed

4 files changed

+2
-23
lines changed

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ ENV ALSA_AUTO_FIND_MIXER ""
8989

9090
ENV OUTPUT_MODE ""
9191

92-
ENV NULL_OUTPUT_NAME ""
93-
ENV NULL_OUTPUT_SYNC ""
94-
9592
# ALSA Outputs
9693
ENV ALSA_OUTPUT_CREATE ""
9794
ENV ALSA_OUTPUT_ENABLED ""

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,14 @@ DATABASE_MODE|Can be `simple` (default) or `proxy`
113113
DATABASE_PROXY_HOST|MPD server hostname, only used when `DATABASE_MODE` is set to `proxy`
114114
DATABASE_PROXY_PORT|MPD server port, only used when `DATABASE_MODE` is set to `proxy`
115115
MUSIC_DIRECTORY|Location of music files, defaults to `/music`
116-
OUTPUT_MODE|Output mode, can be `alsa` (still default but **deprecated**, you should use `ALSA_OUTPUT_CREATE` set to `yes`), `null` or `none`.
116+
OUTPUT_MODE|Output mode, can be `alsa` (still default but **deprecated**, you should use `ALSA_OUTPUT_CREATE` set to `yes`) or `none`.
117117
MPD_BIND_ADDRESS|The MPD listen address, defaults to `0.0.0.0`
118118
MPD_PORT|The MPD port, defaults to `6600`
119119
USER_MODE|Set to `Y` or `YES` for user mode. Case insensitive. See [User mode](#user-mode). Required when using any PulseAudio outputs (so when `PULSE_AUDIO_OUTPUT_CREATE` is set to `yes`)
120120
PUID|User id. Defaults to `1000`. The user/group will be created when a PulseAudio output is created regardless of the `USER_MODE` variable.
121121
PGID|Group id. Defaults to `1000`. The user/group will be created when a PulseAudio output is created regardless of the `USER_MODE` variable.
122122
AUDIO_GID|`audio` group id from the host machine. Mandatory for `alsa` output in user mode. See [User mode](https://github.com/GioF71/mpd-alsa-docker/blob/main/doc/user-mode.md).
123123
INPUT_CACHE_SIZE|Sets the input cache size. Example value: `1 GB`
124-
NULL_OUTPUT_NAME|Name of the `null` output
125-
NULL_OUTPUT_SYNC|Sync mode for the `null` output, can be `yes` (default) or `no`
126124
SAMPLERATE_CONVERTER|Configure `samplerate_converter`. Example value: `soxr very high`. Note that this configuration cannot be used when `SOXR_PLUGIN_ENABLE` is set to enabled. There are some preset values for sox: `very_high` and `very-high` map to `soxr very high`, `high` maps to `soxr high`, `medium` maps to `soxr medium`, `low` maps to `soxr low` and `quick` maps to `soxr quick`. Refer to [this](https://mpd.readthedocs.io/en/stable/plugins.html#soxr) page for details.
127125
MPD_ENABLE_LOGGING|Defaults to `yes`, set to `no` to disable
128126
MPD_LOG_LEVEL|Can be `default` or `verbose`

app/bin/run-mpd.sh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ if [[ "${ANY_PULSE}" -eq 1 ]] ||
137137
if [ -n "${AUDIO_GID}" ]; then
138138
create_audio_gid
139139
fi
140-
elif [ "${OUTPUT_MODE^^}" == "NULL" ]; then
141-
echo "Null Mode - No actions"
142140
else
143141
echo "Invalid output mode [${OUTPUT_MODE}]";
144142
exit 2;
@@ -460,21 +458,6 @@ if [ "${OUTPUT_MODE^^}" == "ALSA" ]; then
460458
fi
461459
echo " enabled \"yes\"" >> $MPD_ALSA_CONFIG_FILE
462460
echo "}" >> $MPD_ALSA_CONFIG_FILE
463-
elif [ "${OUTPUT_MODE^^}" == "NULL" ]; then
464-
echo "audio_output {" >> $MPD_ALSA_CONFIG_FILE
465-
echo " enabled \"yes\"" >> $MPD_ALSA_CONFIG_FILE
466-
echo " type \"null\"" >> $MPD_ALSA_CONFIG_FILE
467-
OUTPUT_NAME="Null Output"
468-
if [ -n "${NULL_OUTPUT_NAME}" ]; then
469-
OUTPUT_NAME=${NULL_OUTPUT_NAME}
470-
fi
471-
OUTPUT_SYNC="yes"
472-
if [ -n "${NULL_OUTPUT_SYNC}" ]; then
473-
OUTPUT_SYNC=${NULL_OUTPUT_SYNC}
474-
fi
475-
echo " name \"${OUTPUT_NAME}\"" >> $MPD_ALSA_CONFIG_FILE
476-
echo " sync \"${OUTPUT_SYNC}\"" >> $MPD_ALSA_CONFIG_FILE
477-
echo "}" >> $MPD_ALSA_CONFIG_FILE
478461
elif [ "${OUTPUT_MODE^^}" == "NONE" ]; then
479462
echo "OUTPUT_MODE is ${OUTPUT_MODE}, so master output is not created"
480463
else

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+
2023-02-11|Dropped `NULL` as `OUTPUT_MODE`
56
2023-02-11|Support additional `NULL` outputs
67
2023-02-09|Clarified `legacy` releases
78
2023-02-04|Image name correction

0 commit comments

Comments
 (0)