Skip to content

Commit

Permalink
414 opus exception not seekable (#415)
Browse files Browse the repository at this point in the history
* #414 Support disable opus decoder

* Mention OPUS_DECODER_ENABLED in Dockerfile
  • Loading branch information
GioF71 authored Jan 2, 2025
1 parent eb692be commit ba5cf20
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ ENV ZEROCONF_ENABLED ""
ENV ZEROCONF_NAME ""

ENV HYBRID_DSD_ENABLED ""
ENV OPUS_DECODER_ENABLED ""

ENV AUDIO_BUFFER_SIZE ""

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ CURL_CACERT|Parameter for CURL input plugin
ZEROCONF_ENABLED|Set to `yes` to enable, disabled by default.
ZEROCONF_NAME|Set zeroconf name, used only if `ZEROCONF_ENABLED` is set to `yes`
HYBRID_DSD_ENABLED|Hybrid dsd is enabled by default, set to `no` to disable. Disabled when at least one PulseAudio output is created.
OPUS_DECODER_ENABLED|Defaults to `yes`, if set to `no`, the opus decoder will be disabled.
AUDIO_BUFFER_SIZE|Adjust the size of the internal audio buffer. Default is `4 MB` (4 MiB).
MAX_ADDITIONAL_OUTPUTS_BY_TYPE|The maximum number of outputs by type, defaults to `20`
RESTORE_PAUSED|If set to `yes`, then MPD is put into pause mode instead of starting playback after startup. Default is `no`.
Expand Down
8 changes: 8 additions & 0 deletions app/bin/run-mpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,14 @@ if [[ "${HYBRID_DSD_ENABLED^^}" == "NO" || "${ANY_PULSE}" -eq 1 ]]; then
echo "}" >> $MPD_ALSA_CONFIG_FILE
fi

## Hybrid dsd plugin disabled when requested
if [[ "${OPUS_DECODER_ENABLED^^}" == "NO" ]] || [[ "${OPUS_DECODER_ENABLED^^}" == "N" ]]; then
echo "decoder {" >> $MPD_ALSA_CONFIG_FILE
echo " plugin \"opus\"" >> $MPD_ALSA_CONFIG_FILE
echo " enabled \"no\"" >> $MPD_ALSA_CONFIG_FILE
echo "}" >> $MPD_ALSA_CONFIG_FILE
fi

## Add Qobuz plugin
echo "Qobuz Plugin Enabled: [$QOBUZ_PLUGIN_ENABLED]"
if [[ "${QOBUZ_PLUGIN_ENABLED^^}" == "Y" || "${QOBUZ_PLUGIN_ENABLED^^}" == "YES" ]]; then
Expand Down
1 change: 1 addition & 0 deletions doc/change-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Date|Major Changes
:---|:---
2025-01-02|Support for disabling opus decoder (see issue [#414](https://github.com/GioF71/mpd-alsa-docker/issues/414))
2024-12-26|Bump to version 0.23.14 (see issue [#412](https://github.com/GioF71/mpd-alsa-docker/issues/412))
2024-10-11|Support for `stop_dsd_silence` (see issue [#410](https://github.com/GioF71/mpd-alsa-docker/issues/410))
2024-09-21|Fix CURL_PROXY interpretation (thank you [tantra35](https://github.com/tantra35))
Expand Down

0 comments on commit ba5cf20

Please sign in to comment.