]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Correct examples of settings for buffer length and offset to include the suffix _in_s...
authorMike Brady <mikebrady@eircom.net>
Thu, 6 Jul 2017 18:12:17 +0000 (19:12 +0100)
committerMike Brady <mikebrady@eircom.net>
Thu, 6 Jul 2017 18:12:17 +0000 (19:12 +0100)
scripts/shairport-sync.conf

index df9b2b7ffbffc0e914214a95459c7d1b74bb90d9..5b8a73a71caf432d04a2276dc85463a452d1c28f 100644 (file)
@@ -102,6 +102,7 @@ alsa =
 //  output_format = "S16"; // can be "U8", "S8", "S16", "S24", "S24_3LE", "S24_3BE" or "S32", but the device must have the capability. Except where stated using (*LE or *BE), endianness matches that of the processor.
 //  audio_backend_latency_offset_in_seconds = 0.0; // Set this offset to compensate for a fixed delay in the audio back end. E.g. if the output device delays by 100 ms, set this to -0.1.
 //  audio_backend_buffer_desired_length_in_seconds = 0.15; // If set too small, buffer underflow occurs on low-powered machines. Too long and the response times with software mixer become annoying.
+//  audio_backend_silent_lead_in_time = 2.0; // Use this optional advanced setting, between 0.050 and 4.0 seconds, to set the length of the period of silence that precedes the start of the audio. The default is the latency, usually 2.0 seconds. Values greater than the latency are ignored.
 //  disable_synchronization = "no"; // Set to "yes" to disable synchronization. Default is "no".
 //  period_size = <number>; // Use this optional advanced setting to set the alsa period size near to this value
 //  buffer_size = <number>; // Use this optional advanced setting to set the alsa buffer size near to this value
@@ -119,33 +120,39 @@ sndio =
 //  bufsz = <number>; // set the buffer size near to this value
 };
 
-// These are parameters for the "pa" PulseAudio  backend. There are none at present!
+// These are parameters for the "pa" PulseAudio  backend.
 pa =
 {
+//  application_name = "Shairport Sync"; //Set this to the name that should appear in the Sounds "Applications" tab when Shairport Sync is active.
+//  audio_backend_latency_offset_in_seconds = 0.0; // Set this offset in seconds to compensate for a fixed delay in the audio back end. E.g. if the output device delays by 100 ms, set this to -0.1.
+//  audio_backend_buffer_desired_length_in_seconds = 0.35;  // Having started to send audio at the right time, send all subsequent audio this much ahead of time, creating a buffer this length.
+//  audio_backend_silent_lead_in_time = 2.0; // Use this optional advanced setting, between 0.050 and 4.0 seconds, to set the length of the period of silence that precedes the start of the audio. The default is the latency, usually 2.0 seconds. Values greater than the latency are ignored.
 };
 
 // These are parameters for the "pipe" audio back end, a back end that directs raw CD-style audio output to a pipe. No interpolation is done.
 pipe =
 {
 //  name = "/path/to/pipe"; // there is no default pipe name for the output
-//  audio_backend_latency_offset = 0.0; // Set this offset in seconds to compensate for a fixed delay in the audio back end. E.g. if the output device delays by 100 ms, set this to -0.1.
-//  audio_backend_buffer_desired_length = 1.0;  // Having started to send audio at the right time, send all subsequent audio this much ahead of time, creating a buffer this length.
+//  audio_backend_latency_offset_in_seconds = 0.0; // Set this offset in seconds to compensate for a fixed delay in the audio back end. E.g. if the output device delays by 100 ms, set this to -0.1.
+//  audio_backend_buffer_desired_length_in_seconds = 1.0;  // Having started to send audio at the right time, send all subsequent audio this much ahead of time, creating a buffer this length.
+//  audio_backend_silent_lead_in_time = 2.0; // Use this optional advanced setting, between 0.050 and 4.0 seconds, to set the length of the period of silence that precedes the start of the audio. The default is the latency, usually 2.0 seconds. Values greater than the latency are ignored.
 };
 
 // These are parameters for the "stdout" audio back end, a back end that directs raw CD-style audio output to stdout. No interpolation is done.
 stdout =
 {
-//  audio_backend_latency_offset = 0.0; // Set this offset in seconds to compensate for a fixed delay in the audio back end. E.g. if the output device delays by 100 ms, set this to -0.1.
-//  audio_backend_buffer_desired_length = 1.0;  // Having started to send audio at the right time, send all subsequent audio this much ahead of time, creating a buffer this length.
+//  audio_backend_latency_offset_in_seconds = 0.0; // Set this offset in seconds to compensate for a fixed delay in the audio back end. E.g. if the output device delays by 100 ms, set this to -0.1.
+//  audio_backend_buffer_desired_length_in_seconds = 1.0;  // Having started to send audio at the right time, send all subsequent audio this much ahead of time, creating a buffer this length.
+//  audio_backend_silent_lead_in_time = 2.0; // Use this optional advanced setting, between 0.050 and 4.0 seconds, to set the length of the period of silence that precedes the start of the audio. The default is the latency, usually 2.0 seconds. Values greater than the latency are ignored.
 };
 
 // These are parameters for the "ao" audio back end. No interpolation is done.
 ao =
 {
-//  audio_backend_latency_offset = 0.0; // Set this offset in seconds to compensate for a fixed delay in the audio back end. E.g. if the output device delays by 100 ms, set this to -0.1.
-//  audio_backend_buffer_desired_length = 1.0;  // Having started to send audio at the right time, send all subsequent audio this much ahead of time, creating a buffer this length.
+//  audio_backend_latency_offset_in_seconds = 0.0; // Set this offset in seconds to compensate for a fixed delay in the audio back end. E.g. if the output device delays by 100 ms, set this to -0.1.
+//  audio_backend_buffer_desired_length_in_seconds = 1.0;  // Having started to send audio at the right time, send all subsequent audio this much ahead of time, creating a buffer this length.
+//  audio_backend_silent_lead_in_time = 2.0; // Use this optional advanced setting, between 0.050 and 4.0 seconds, to set the length of the period of silence that precedes the start of the audio. The default is the latency, usually 2.0 seconds. Values greater than the latency are ignored.
 };
 
 // Static latency settings are deprecated and the settings have been removed. 
 
-