Skip to content

Commit b2dcb1c

Browse files
authored
[HouseKeeping] More headroom with MAX_ADDITIONAL_OUTPUTS_BY_TYPE #154 (#155)
1 parent dc78fda commit b2dcb1c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ ZEROCONF_ENABLED||Set to `yes` to enable. Disabled by default.
189189
ZEROCONF_NAME||Set zeroconf name, used only if `ZEROCONF_ENABLED` is set to `yes`
190190
HYBRID_DSD_ENABLED||Hybrid dsd is enabled by default, set to `no` to disable. Disabled when using Pulse mode.
191191
MAX_OUTPUT_BUFFER_SIZE||The maximum size of the output buffer to a client (maximum response size). Default is 8192 (8 MiB). Value in KBytes.
192-
MAX_ADDITIONAL_OUTPUTS_BY_TYPE||The maximum number of outputs by type, defaults to `5`
192+
MAX_ADDITIONAL_OUTPUTS_BY_TYPE||The maximum number of outputs by type, defaults to `20`
193193
RESTORE_PAUSED||If set to `yes`, then MPD is put into pause mode instead of starting playback after startup. Default is `no`.
194194
STATE_FILE_INTERVAL||Auto-save the state file this number of seconds after each state change, defaults to `10` seconds
195195
STARTUP_DELAY_SEC|0|Delay before starting the application. This can be useful if your container is set up to start automatically, so that you can resolve race conditions with mpd and with squeezelite if all those services run on the same audio device. I experienced issues with my Asus Tinkerboard, while the Raspberry Pi has never really needed this. Your mileage may vary. Feel free to report your personal experience.
@@ -214,7 +214,7 @@ HTTPS_OUTPUT_TAGS|yes|If set to no, then MPD will not send tags to this output.
214214
HTTPD_OUTPUT_FORMAT|yes|The output format, defaults to `44100:16:2`
215215
HTTPD_MIXER_TYPE|yes|Set to `software` if you want to be able to change the volume of the output stream
216216

217-
Note that you can add up to 5 (or what is specified for the variable `MAX_ADDITIONAL_OUTPUTS_BY_TYPE`) httpd outputs. In order to specify distinct values, you can add `_1`, `_2` to every variable names in this set. The first output does *not* require to specify `_0`, that index is implicit.
217+
Note that you can add up to 20 (or what is specified for the variable `MAX_ADDITIONAL_OUTPUTS_BY_TYPE`) httpd outputs. In order to specify distinct values, you can add `_1`, `_2` to every variable names in this set. The first output does *not* require to specify `_0`, that index is implicit.
218218
The port number default is calculated for each index, as well as the default output name which is appended with `_1`, `_2`, ... (so it becomes `httpd_1`, `httpd_2`, ...).
219219
When using multiple httpd outputs, remember to open *all* the relevant ports, not only `8000`, otherwise only the first output will work.
220220

@@ -239,7 +239,7 @@ SHOUT_OUTPUT_PASSWORD|yes|Sets the password for submitting the stream to the ser
239239
SHOUT_OUTPUT_PUBLIC|yes|Specifies whether the stream should be "public", defaults to `no`
240240
SHOUT_MIXER_TYPE|yes|Set to `software` if you want to be able to change the volume of the output stream
241241

242-
Note that you can add up to 5 (or what is specified for the variable `MAX_ADDITIONAL_OUTPUTS_BY_TYPE`) httpd outputs. In order to specify distinct values, you can add `_1`, `_2` to every variable names in this set. The first output does *not* require to specify `_0`, that index is implicit.
242+
Note that you can add up to 20 (or what is specified for the variable `MAX_ADDITIONAL_OUTPUTS_BY_TYPE`) httpd outputs. In order to specify distinct values, you can add `_1`, `_2` to every variable names in this set. The first output does *not* require to specify `_0`, that index is implicit.
243243
The port number default is calculated for each index, as well as the default output name which is appended with `_1`, `_2`, ... (so it becomes `shout_1`, `shout_2`, ...).
244244

245245
### Examples
@@ -285,6 +285,7 @@ Just be careful to use the tag you have built.
285285

286286
Date|Major Changes
287287
:---|:---
288+
2022-12-24|`MAX_ADDITIONAL_OUTPUTS_BY_TYPE` now defaults to `20`
288289
2022-12-17|Add `MPD_ENABLE_LOGGING`
289290
2022-12-16|Preset `fiio-e18` now includes mixer
290291
2022-12-16|Code cleanup

app/bin/run-mpd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ STABLE_MPD_BINARY=/app/bin/compiled/mpd
1414
UPSAMPLING_MPD_BINARY=/app/bin/compiled/mpd-ups
1515
REPO_MPD_BINARY=/usr/bin/mpd
1616

17-
DEFAULT_MAX_OUTPUTS_BY_TYPE=5
17+
DEFAULT_MAX_OUTPUTS_BY_TYPE=20
1818
DEFAULT_OUTPUT_MODE=alsa
1919

2020
if [ -z "${OUTPUT_MODE}" ]; then

0 commit comments

Comments
 (0)