Fix stream latency with 96kHz files
- Change resampler from 'best' to 'fast' to reduce CPU load - Add 5-10 second buffer before crossfade to handle high sample rate files
This commit is contained in:
parent
5a5acee29e
commit
fb5f6e1ad1
|
|
@ -12,7 +12,8 @@ log.level.set(4)
|
||||||
# Audio buffering settings to prevent choppiness
|
# Audio buffering settings to prevent choppiness
|
||||||
settings.frame.audio.samplerate.set(44100)
|
settings.frame.audio.samplerate.set(44100)
|
||||||
settings.frame.audio.channels.set(2)
|
settings.frame.audio.channels.set(2)
|
||||||
settings.audio.converter.samplerate.libsamplerate.quality.set("best")
|
# Use "fast" resampler instead of "best" to reduce CPU load on 96kHz files
|
||||||
|
settings.audio.converter.samplerate.libsamplerate.quality.set("fast")
|
||||||
|
|
||||||
# Enable telnet server for remote control
|
# Enable telnet server for remote control
|
||||||
settings.server.telnet.set(true)
|
settings.server.telnet.set(true)
|
||||||
|
|
@ -39,6 +40,9 @@ radio_fallback = playlist.safe(
|
||||||
# Use main playlist, fall back to directory scan
|
# Use main playlist, fall back to directory scan
|
||||||
radio = fallback(track_sensitive=false, [radio, radio_fallback])
|
radio = fallback(track_sensitive=false, [radio, radio_fallback])
|
||||||
|
|
||||||
|
# Add buffer to handle high sample rate files (96kHz -> 44.1kHz resampling)
|
||||||
|
radio = buffer(buffer=5.0, max=10.0, radio)
|
||||||
|
|
||||||
# Simple crossfade for smooth transitions
|
# Simple crossfade for smooth transitions
|
||||||
radio = crossfade(
|
radio = crossfade(
|
||||||
duration=3.0, # 3 second crossfade
|
duration=3.0, # 3 second crossfade
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue