update
This commit is contained in:
parent
d8c4690b4a
commit
b3fdb8fd45
|
|
@ -23,7 +23,7 @@ function adelayFromMs($ms, $channels = 2)
|
|||
$parts = array_fill(0, $channels, (string)$ms);
|
||||
$pattern = implode('|', $parts);
|
||||
|
||||
return ' -af "adelay=' . $pattern . '" ';
|
||||
return 'adelay=' . $pattern;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -161,7 +161,9 @@ function update_service($which_service)
|
|||
. ' -ar ' . $common_backend_audio_sample_rate
|
||||
. ' ' . $common_backend_extra;
|
||||
if ($hdmi_delay_audio != "")
|
||||
$input .= adelayFromMs($hdmi_delay_audio, 2);
|
||||
$input .= ' -af "volume=' . $common_backend_audio_db_gain . ',' . adelayFromMs($hdmi_delay_audio, 2) . '"';
|
||||
else
|
||||
$input .= ' -af "volume=' . $common_backend_audio_db_gain . '"';
|
||||
$input .= " -f mpegts "
|
||||
. ' "udp://@239.255.254.254:39000?fifo_size=5000000&overrun_nonfatal=1&localaddr=127.0.0.1&ttl=1"';
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue