shairport-sync: update to 2.8.2 2607/head
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 17 Apr 2016 09:07:57 +0000 (11:07 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 17 Apr 2016 09:07:57 +0000 (11:07 +0200)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
sound/shairport-sync/Makefile
sound/shairport-sync/files/shairport-sync.config
sound/shairport-sync/files/shairport-sync.init

index 781b85590420c142b12c7b942d73f8eb7124fdf1..a35f64386cfd796e8d401712c072cd32bfb1bf97 100644 (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
index 0640bde3b88827e8b17580efe8154cc0e238cb50..f2256a4e2cabba0d2101ed1c1030382511f47784 100644 (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
index ac4b5898fed87250821db35b5c1dfbb42a653afe..68c5a6d30718ee3b4981cf9d2fbc9f8d413385e9 100644 (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