Kodi Community Forum

Full Version: XBMC analogue 5.1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

Installed XBMC very successfully on our Ubuntu 7.10 media centre, from SVN using the build script.

We have a 5.1 surround sound system, using an analogue onboard card.
I've got a .asoundrc that upmixes 2 channel sound to 5.1 (and plays back actual 5.1 normally), which works perfectly in XBMC for music playback, etc.

However, whenever I try to watch a DVD with 5.1, the sound will not play, and often the DVD will just freeze playback after a few seconds of the feature.

Looked at xbmc.log and it seems it's trying to pass the audio through "xbmc_51to2", I think. Why would it be trying to downmix it? Or what's going on here?

Any thoughts?

Cheers.
In testing, I edited DVDAudioPlayer.cpp and removed the line that was forcing it to downmix before going to alsa "default" (there was a TODO suggesting making this user selectable anyway). Still, same effect, the full log lines at the point of problem are:

15:13:10 T:2775759760 M:111517696 NOTICE: Creating audio device with codec id: 86020, channels: 6, sample rate: 48000, no pass-through
15:13:10 T:2775759760 M:111517696 DEBUG: CALSADirectSound::CALSADirectSound - opening alsa device
15:13:10 T:2800937872 M:111517696 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
15:13:10 T:2775759760 M:111652864 DEBUG: CALSADirectSound - using alsa device default
15:13:10 T:2775759760 M:111652864 DEBUG: CDVDPlayerAudio:: Discontinuty - was:50091325.920000, should be:50040000.000000, error:-51325.920000
15:13:21 T:2800937872 M:111640576 INFO: CDVDPlayerVideo - Stillframe detected, switching to forced 25.000000 fps

And the last line is where the playback freezes.
ALSADirectSound.cpp , rather, line 117.
Sorry for repeat posts - can't work out how to edit my previous posts.
Bump? Anyone got any thoughts?
Confirmed this on another computer/install; dvd playback stops when a 5.1 stream is encountered.