Bug [Regression] FLAC audio via S/PDIF frequently stays muted after unpausing
#1
Bug 
This appears to be an audio buffer issue and started occurring with the latest Kodi builds. I've tested both mainline (15.0-ALPHA2 Git:2015-03-13-5be57c5) and FernetMenta's branch from yesterday.

When playing a stream with transcoded FLAC audio (both 2.0 & 5.1 channels) over S/PDIF, the audio often does not resume after unpausing and requires a second (or third) pause/play event in order for the audio to come back alive.

The receiver receives the signal ok when this happens (i.e, still has a link, and in the case of a 5.1 stream still has all channels active but with no audio); so it is not a matter of the dropping out completely-it still gets a transcoded Dolby Digital signal. Sometimes a short audio fragment/pop can be heard when it tries to resume the audio (as if a buffer is being flushed).

The issue does not occur when playing a TrueHD stream (which also gets processed by Kodi when outputting over S/PDIF)

Debug log:

http://paste.debian.net/162275/
Reply
#2
btw. – this issue appears to bear some similarities to the previous bug which was reported (and fixed, by FernetMenta) ~1yr ago:

http://forum.kodi.tv/showthread.php?tid=191331

(Although, obviously, that specifically affected bitstreamed audio and not FLAC in particular, and was due to not properly ceasing to process passthrough packets for paused streams, ref. PR https://github.com/xbmc/xbmc/pull/4801/files)
Reply
#3
The problem now been verified on a second setup, running on Haswell (vs. Ivy Bridge for the first) and using the CS4208 audio chipset (vs. ALC662 rev1 on the primary system)
If it's of any help, the audio sometimes comes back alive after unpausing (~5-15 seconds), sometimes not at all.

Attaching new debug log for 2nd test rig:

http://paste.debian.net/162277/

[Since this is a regression which has happened 'fairly recently' (i.e, was working good when using the mainline build from the end of Feb), I am modifying the title as such]
Reply

Logout Mark Read Team Forum Stats Members Help
[Regression] FLAC audio via S/PDIF frequently stays muted after unpausing0