]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add a section on adjusting sync to compensate for amplifier delays. Update the troubl...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 10 Oct 2022 11:11:53 +0000 (12:11 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 10 Oct 2022 11:11:53 +0000 (12:11 +0100)
ADVANCED TOPICS/AdjustingSync.md [new file with mode: 0644]
ADVANCED TOPICS/README.md
TROUBLESHOOTING.md

diff --git a/ADVANCED TOPICS/AdjustingSync.md b/ADVANCED TOPICS/AdjustingSync.md
new file mode 100644 (file)
index 0000000..cc4627f
--- /dev/null
@@ -0,0 +1,25 @@
+# Adjusting Synchronisation on Shairport Sync ("SPS")
+
+Sometimes, a timing difference can be heard, where the audio coming from the SPS-powered device is slightly ahead or slightly behind another device playing in synchrony. This can sometimes be heard as an irritating "echo".
+
+This is usually due to audio amplifier delays.
+
+* If your audio output device (including the amplifier in a TV) includes any digital processing component, it probably delays audio while amplifying it.
+
+* If your output device is a HDMI-connected device such as a TV or an AV Receiver (AVR), it will almost certainly delay audio by anything up to several hundred milliseconds.
+
+In these circumstances, if the output from the SPS device is amplified by a conventional analog-only HiFi amplifier – which has almost no delay – it will be early by comparison with audio coming the other device.
+
+Conversely, if the output from the SPS device is passed through an AVR, then it could be late by comparison with audio amplified by a conventional audio amplifier.
+
+The fix for this is to get Shairport Sync to compensate for delays by providing audio to the output device _slightly late_ or _slightly early_, so that when audio emerges from the amplifier, it is in exact synchrony with audio from the other devices.
+
+The setting to look for is in the `general` section of the Shairport Sync configuration file and is called `audio_backend_latency_offset_in_seconds`. By default it is `0.0` seconds.
+
+To delay the output from the SPS device by 100 milliseconds (0.1 seconds), set the `audio_backend_latency_offset_in_seconds` to `0.1`, so that audio is provided to your output device 100 milliseconds later than nominal synchronisation time.
+
+Similarly, to get the output from the SPS device 50 milliseconds (0.05 seconds) early, set the `audio_backend_latency_offset_in_seconds` to `-0.05`, so that audio is provided to your output device 50 milliseconds earlier than nominal synchronisation time.
+
+Latency adjustments should be small, not more than about ± 250 milliseconds.
+
+Remember to uncomment the line by removing the initial `//` and then restart Shairport Sync (or reboot the device) for the changed setting to take effect.
index b5c3c2329f4fbdfcffc00ed3d9fbfdbb71e9de8d..19db026644df640718714f448f7b0e175755c02a 100644 (file)
@@ -1,6 +1,7 @@
 # Advanced Topics
 Here you will find links to some advanced features and things you can do with Shairport Sync.
 * [Finish Setting Up](InitialConfiguration.md).
+* [Adjusting Sync](AdjustingSync.md) – advance or delay the timing of the output from Shairport Sync to compensate for amplifier delays.
 * [Get The Best](GetTheBest.md) from your system.
 * [Metadata](Metadata.md).
 * [Events](Events.md).
index 2bccf0488342519406271df15e7d2a4515a18d35..ad09ccb1d33b68444fdbc5377dd534c40baf2e55 100644 (file)
@@ -15,14 +15,8 @@ If you are using the default ALSA backend, don't forget to check two simple thin
 
 You can use `alsamixer` for both of theses checks. A muted output has the letter(s) `M` as its value. Select it and type `M` again to unmute. 
 
-### Audio is Delayed!
-If the audio from your Shairport Sync device is delayed slightly by comparison with audio from other devices, it may be that the output device being fed by Shairport Sync is introducing a delay while it processes the audio. If your output device include any digital processing component, it probably delays the audio while it processing occurs. 
-
-For instance, if your output device is a HDMI-connected device such as a TV or an AV Receiver, it will almost certainly delay audio by anything up to several hundred milliseconds.
-
-The fix for this is to ask Shairport Sync to provide the audio to the output device _slightly ahead of time_, so that by the time the output device has processed it, the audio emerges at exactly the right time. The setting to look for is in the `general` section of the Shairport Sync configuration file and is called `audio_backend_latency_offset_in_seconds`. By default it is `0.0` seconds.
-
-For example, if your output device is delaying audio by 100 milliseconds (0.1 seconds), set the `audio_backend_latency_offset_in_seconds` to `-0.1`, so that audio is provided to your output device 0.1 seconds early. Remember to uncomment the line by removing the initial `//` and then restart Shairport Sync (or reboot the device) for the changed setting to take effect.
+### Sync is slightly off!
+Please see [Adjusting Sync](./ADVANCED%20TOPICS/AdjustingSync.md).
 
 ### WiFi adapter running in power-saving / low-power mode