XBMC PulseAudio passthrough support (including Nvidia) is available

  Thread Rating:
  • 3 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Johnny569 Offline
Junior Member
Posts: 5
Joined: Mar 2012
Reputation: 0
Post: #261
cbxbiker61, you did it!!! Excellent work on the DTS-HD MA!! Big Thank You.

I understand Dolby TrueHD is still a work in progress. Waiting with anticipation.

I'm on Ubuntu 11.10 64-bit and was able to watch the blu-ray Rise of the Planet of the Apes in DTS-HD MA 5.1 on xbmc with the plugin plugin.makemkvbluray.zip and MakeMKV streaming in the background.

I have an NVidia GTX 560Ti and using a probe_mask.

It played flawlessly and the whole time DTS-HD MSTR was showing on my receiver.

I ran into several make,compile errors along the way, but through googling solved them all.

Here's what I did. For the most part, I followed shadow's script from post# 41:

1)PATCH PULSEAUDIO
Code:
cd ~/Downloads
wget http://freedesktop.org/software/pulseaudio/releases/pulseaudio-1.1.tar.gz

Got the patch, saved as patchfile and put inside pulseaudio folder
In patchfile, added a space in front of lines 4,5,13,18 to clear the malformed errors.
Typo in patchfile in line 18, it's incomplete, through googling completed with what is most likely:
@@ -3700,7 +3700,8 @@ static int mapping_verify(pa_alsa_mapping *m, const pa_channel_map *bonus) {

Then patched with:
Code:
patch -p0 --ignore-whitespace < patchfile

2)INSTALL JSONC LIBRARY
Code:
wget http://ftp.debian.org/debian/pool/main/j/json-c/json-c_0.9.orig.tar.gz
wget http://ftp.debian.org/debian/pool/main/j/json-c/json-c_0.9-1.debian.tar.gz
Untar the .orig.tar.gz archive first then untar the .debian.tar.gz over the top of that

cd jsonc
./configure  (no autogen.sh file)
make
make install

SATISFY PULSEAUDIO AND XBMC DEPENDENCIES, DOWNLOAD FILES
Code:
sudo apt-get build-dep pulseaudio xbmc
cd ~/Downloads
git clone git://github.com/cbxbiker61/audiofilter.git
git clone git://github.com/cbxbiker61/xbmc.git

3)INSTALL PULSEAUDIO
Code:
cd pulseaudio
./bootstrap.sh
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
sudo make install
pulseaudio -k

At that point got error:
E: [pulseaudio] main.c: Failed to kill daemon: No such process

lauched command:
./src/pulseaudio -n -F src/default.pa -p $(pwd)/src/.libs/

Got about a dozen errors, mostly org.freedesktop.DBus.Error, unable to contact D-Bus session.

Could not get pulseaudio started, no sound devices in Ubuntu's System Settings → sounds

Skipped and continued on

4)INSTALL AUDIOFILTER
lots of googling here. I'm on a 64-bit system, but building/compiling in 32-bit.

To clear the missing bits/predefs.h error, and for proper 32-bit libc includes on a 64-bit system:
Code:
sudo apt-get install libc6-dev-i386

To tell g++ to take the 32-bit directory insteady of the 64-bit one and to clear error: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++
Code:
sudo apt-get install g++-multilib

Then continued with:
Code:
cd /audiofilter/gnu
make
sudo make install

5) INSTALL XBMC
Code:
cd xbmc
./bootstrap
./configure
make
sudo make install

After running this last make command, magically all pulseaudio problems from previously got fixed and the Digital Surround 7.1 HDMI output appeared in Ubuntu's System Settings → Sounds.

EDIT: on my Ubuntu 64-bit, launching xbmc from the shortcut doesn't work. But doing sudo xbmc from terminal works perfect each time.
(This post was last modified: 2012-06-09 22:23 by Johnny569.)
find quote
Johnny569 Offline
Junior Member
Posts: 5
Joined: Mar 2012
Reputation: 0
Post: #262
Confirmed that DTS-HD MSTR is still working on Ubuntu 12.04 with PulseAudio 2.0

The only thing still missing is Dolby TrueHD support.

I did a clean install of Ubuntu 12.04 32-bit.

I downloaded, compiled and installed audiofilter and xbmc from cbxbiker61's git repository. I did not modify PulseAudio or install the jsonc libraries.

Still works the same as on Ubuntu 11.10 by selecting Digital Surround 5.1 PulseAudio
Or by disabling PulseAudio with:
Code:
$ pulseaudio -k
And selecting HDMI Nvidia Alsa
(This post was last modified: 2012-06-09 22:37 by Johnny569.)
find quote
mightymouse2045 Offline
Junior Member
Posts: 43
Joined: Feb 2012
Reputation: 0
Post: #263
(2012-06-09 22:36)Johnny569 Wrote:  Confirmed that DTS-HD MSTR is still working on Ubuntu 12.04 with PulseAudio 2.0

The only thing still missing is Dolby TrueHD support.

I did a clean install of Ubuntu 12.04 32-bit.

I downloaded, compiled and installed audiofilter and xbmc from cbxbiker61's git repository. I did not modify PulseAudio or install the jsonc libraries.

Still works the same as on Ubuntu 11.10 by selecting Digital Surround 5.1 PulseAudio
Or by disabling PulseAudio with:
Code:
$ pulseaudio -k
And selecting HDMI Nvidia Alsa

You know that the main master git repo build supports all formats now, and has supprt for pass through options similar to cxbikers build?

Including True HD, DTS MA, DTS HRA etc....
find quote
Johnny569 Offline
Junior Member
Posts: 5
Joined: Mar 2012
Reputation: 0
Post: #264
Thanks for the great tip.

I went and compiled from the main master git repo. Indeed, Dolby Digital+, TrueHD and DTS-HD MSTR are supported. I can even select my receiver by model name as an output device. Impressive. Development has come a long way.
(This post was last modified: 2012-06-11 21:50 by Johnny569.)
find quote
Post Reply