Browse Source

Merge pull request #2607 from openwrt-es/shairport-sync-next

shairport-sync: update to 2.8.2
lilik-openwrt-22.03
Ted Hess 9 years ago
parent
commit
bc9795a27f
3 changed files with 20 additions and 16 deletions
  1. +1
    -1
      sound/shairport-sync/Makefile
  2. +7
    -5
      sound/shairport-sync/files/shairport-sync.config
  3. +12
    -10
      sound/shairport-sync/files/shairport-sync.init

+ 1
- 1
sound/shairport-sync/Makefile View File

@ -9,7 +9,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=shairport-sync
PKG_VERSION:=2.8.1
PKG_VERSION:=2.8.2
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git


+ 7
- 5
sound/shairport-sync/files/shairport-sync.config View File

@ -24,11 +24,7 @@ config shairport-sync 'shairport_sync'
option log_verbosity '' # 0/1/2/3
option ignore_volume_control '' # no/yes
option volume_range_db '' # 30 to 150
# Latencies
option latencies_default '' # 88200
option latencies_itunes '' # 99400
option latencies_airplay '' # 88200
option latencies_forked_daapd '' # 99400
option regtype '' # _raop._tcp
# Metadata
option metadata_enabled '' # no/yes
option metadata_cover_art '' # no/yes
@ -45,6 +41,9 @@ config shairport-sync 'shairport_sync'
option alsa_mixer_device '' # default
option alsa_latency_offset '' # 0
option alsa_buffer_length '' # 6615
option alsa_disable_synchronization '' # no/yes
option alsa_period_size '' # number
option alsa_buffer_size '' # number
# Pipe
option pipe_name '' # /tmp/shairport-sync-audio
option pipe_latency_offset '' # 0
@ -52,3 +51,6 @@ config shairport-sync 'shairport_sync'
# Stdout
option stdout_latency_offset '' # 0
option stdout_buffer_length '' # 44100
# AO
option ao_latency_offset '' # 0
option ao_buffer_length '' # 44100

+ 12
- 10
sound/shairport-sync/files/shairport-sync.init View File

@ -1,5 +1,5 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2015 OpenWrt.org
# Copyright (C) 2015-2016 OpenWrt.org
START=99
USE_PROCD=1
@ -59,15 +59,7 @@ start_instance() {
append_num "$cfg" "$conf_file" log_verbosity "log_verbosity"
append_str "$cfg" "$conf_file" ignore_volume_control "ignore_volume_control"
append_num "$cfg" "$conf_file" volume_range_db "volume_range_db"
echo -e "};\n" >> $conf_file
# Latencies
echo -e "latencies =" >> $conf_file
echo -e "{" >> $conf_file
append_num "$cfg" "$conf_file" latencies_default "default"
append_num "$cfg" "$conf_file" latencies_itunes "itunes"
append_num "$cfg" "$conf_file" latencies_airplay "airplay"
append_num "$cfg" "$conf_file" latencies_forked_daapd "forkedDaapd"
append_str "$cfg" "$conf_file" regtype "regtype"
echo -e "};\n" >> $conf_file
# Metadata
@ -96,6 +88,9 @@ start_instance() {
append_str "$cfg" "$conf_file" alsa_mixer_device "mixer_device"
append_num "$cfg" "$conf_file" alsa_latency_offset "audio_backend_latency_offset"
append_num "$cfg" "$conf_file" alsa_buffer_length "audio_backend_buffer_desired_length"
append_str "$cfg" "$conf_file" alsa_disable_synchronization "disable_synchronization"
append_num "$cfg" "$conf_file" alsa_period_size "period_size"
append_num "$cfg" "$conf_file" alsa_buffer_size "buffer_size"
echo -e "};\n" >> $conf_file
# Pipe audio back end
@ -112,6 +107,13 @@ start_instance() {
append_num "$cfg" "$conf_file" stdout_latency_offset "audio_backend_latency_offset"
append_num "$cfg" "$conf_file" stdout_buffer_length "audio_backend_buffer_desired_length"
echo -e "};\n" >> $conf_file
# AO audio back end
echo -e "ao =" >> $conf_file
echo -e "{" >> $conf_file
append_num "$cfg" "$conf_file" ao_latency_offset "audio_backend_latency_offset"
append_num "$cfg" "$conf_file" ao_buffer_length "audio_backend_buffer_desired_length"
echo -e "};\n" >> $conf_file
fi
procd_open_instance


Loading…
Cancel
Save