|
@@ -1,5 +1,5 @@
|
1
|
1
|
#!/bin/sh /etc/rc.common
|
2
|
|
-# Copyright (C) 2015 OpenWrt.org
|
|
2
|
+# Copyright (C) 2015-2016 OpenWrt.org
|
3
|
3
|
|
4
|
4
|
START=99
|
5
|
5
|
USE_PROCD=1
|
|
@@ -59,15 +59,7 @@ start_instance() {
|
59
|
59
|
append_num "$cfg" "$conf_file" log_verbosity "log_verbosity"
|
60
|
60
|
append_str "$cfg" "$conf_file" ignore_volume_control "ignore_volume_control"
|
61
|
61
|
append_num "$cfg" "$conf_file" volume_range_db "volume_range_db"
|
62
|
|
- echo -e "};\n" >> $conf_file
|
63
|
|
-
|
64
|
|
- # Latencies
|
65
|
|
- echo -e "latencies =" >> $conf_file
|
66
|
|
- echo -e "{" >> $conf_file
|
67
|
|
- append_num "$cfg" "$conf_file" latencies_default "default"
|
68
|
|
- append_num "$cfg" "$conf_file" latencies_itunes "itunes"
|
69
|
|
- append_num "$cfg" "$conf_file" latencies_airplay "airplay"
|
70
|
|
- append_num "$cfg" "$conf_file" latencies_forked_daapd "forkedDaapd"
|
|
62
|
+ append_str "$cfg" "$conf_file" regtype "regtype"
|
71
|
63
|
echo -e "};\n" >> $conf_file
|
72
|
64
|
|
73
|
65
|
# Metadata
|
|
@@ -96,6 +88,9 @@ start_instance() {
|
96
|
88
|
append_str "$cfg" "$conf_file" alsa_mixer_device "mixer_device"
|
97
|
89
|
append_num "$cfg" "$conf_file" alsa_latency_offset "audio_backend_latency_offset"
|
98
|
90
|
append_num "$cfg" "$conf_file" alsa_buffer_length "audio_backend_buffer_desired_length"
|
|
91
|
+ append_str "$cfg" "$conf_file" alsa_disable_synchronization "disable_synchronization"
|
|
92
|
+ append_num "$cfg" "$conf_file" alsa_period_size "period_size"
|
|
93
|
+ append_num "$cfg" "$conf_file" alsa_buffer_size "buffer_size"
|
99
|
94
|
echo -e "};\n" >> $conf_file
|
100
|
95
|
|
101
|
96
|
# Pipe audio back end
|
|
@@ -112,6 +107,13 @@ start_instance() {
|
112
|
107
|
append_num "$cfg" "$conf_file" stdout_latency_offset "audio_backend_latency_offset"
|
113
|
108
|
append_num "$cfg" "$conf_file" stdout_buffer_length "audio_backend_buffer_desired_length"
|
114
|
109
|
echo -e "};\n" >> $conf_file
|
|
110
|
+
|
|
111
|
+ # AO audio back end
|
|
112
|
+ echo -e "ao =" >> $conf_file
|
|
113
|
+ echo -e "{" >> $conf_file
|
|
114
|
+ append_num "$cfg" "$conf_file" ao_latency_offset "audio_backend_latency_offset"
|
|
115
|
+ append_num "$cfg" "$conf_file" ao_buffer_length "audio_backend_buffer_desired_length"
|
|
116
|
+ echo -e "};\n" >> $conf_file
|
115
|
117
|
fi
|
116
|
118
|
|
117
|
119
|
procd_open_instance
|