Posts: 48
Threads: 4
Joined: Feb 2020
Reputation:
1
Hi Team, Im getting a nasty full level audio glitch sometimes between tracks and when pausing a FLAC streaming radio. My configuration is rPi3b+1G with digi+pro hat. SPDIF direct into speakers. I use software volume control and SoX set to 96k/24bit very high quality.
Any thoughts where to look or how to proceed to eliminate factors and narrow down the cause?
My hunch is either the software volume or SoX doesnt like having the stream cut off suddenly, or sudden change in source sample rate, or both. Of course it should handle these events gracefully while outputting constant SPDIF stream. Maybe it should apply a short cross-fade to the output while it re-syncs to the new Fs.
Posts: 451
Threads: 11
Joined: Sep 2019
Reputation:
28
03-26-2020, 09:08 PM
(This post was last modified: 03-26-2020, 09:11 PM by vinnn.)
Sounds like DAC jitter which is usually an issue pertaining to poor DAC design or clock syncing when using optical/spdif connections. What DAC are you using?
Posts: 48
Threads: 4
Joined: Feb 2020
Reputation:
1
Its SPDIF/AES direct into a dBX Venu360. Surely the SPDIF stream coming out of Moode/SoX should be constant and not cause a professional "DAC" like this to output full level digital hash when "re-syncing" sources. Its one reason I choose to re-sample.
Posts: 48
Threads: 4
Joined: Feb 2020
Reputation:
1
In terms of eliminating the "DAC" as being the cause of the glitches, I feed the same dBX Venu360's other AES input from my MacBook Pro (USB via Topping D10 SPDIF output) and never hear glitches between tracks etc. Im assuming the MacOS coreaudio sample rate converter is "well behaved" in that it mutes or xfades while resyncing and never outputs an invalid or jittery bitstream.
I guess im just asking if we can make MoOde/SoX also be well-behaved in this regard.
Posts: 14,551
Threads: 332
Joined: Mar 2018
Reputation:
596
What do u mean by "the SPDIF stream coming out of Moode/SoX should be constant"?
One way to troubleshoot is to test the three cases below. If no glitches occur for case 1 and glitches do occur for cases 2 and 3 then what's happening is that MPD is closing the audio output for cases 2 and 3 but not for 1. I don't believe MPD has an option to always keep the audio output open.
1. Automatic transition from one track o the next in the Playlist
2. Manually clicking to a different track in the Playlist
3. Manually stopping a track or radio station
Posts: 48
Threads: 4
Joined: Feb 2020
Reputation:
1
Same result with resample disabled.
Seems the issue is with software volume control. When I disable that, the issue goes away. 100% repeatable.
Resample disabled or enabled, software volume disabled. Perfect, no glitches.