XBMC Community Forum
[PATCH] Dual Audio Output support for XBMC (Eden Updated) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: [PATCH] Dual Audio Output support for XBMC (Eden Updated) (/showthread.php?tid=86038)



RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - tenf00t - 2012-06-03 20:44

Never mind, figured it out. Just had to log out and log back in with XBMC instead of XBMCbuntu. Now it's ok everytime i reboot.
Thank you


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - sircube - 2012-06-04 16:04

HI,

how does this patch relate to the AudioEngine branch merge?
Will it be possible to use the patch (at some point in time) with recent build as well?


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - robertvg - 2012-06-06 16:19

(2012-06-04 16:04)sircube Wrote:  HI,

how does this patch relate to the AudioEngine branch merge?
Will it be possible to use the patch (at some point in time) with recent build as well?

Same question ;-)


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - armitatz - 2012-06-11 12:32

So far the dual audio and audioengine are incompatible. The audio engine author doesn't even want to think about it. So if you need the dual audio don't upgrade yet...


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - ubuntu-xbmc - 2012-06-12 17:55

Thanks again XHBL. I recently upgraded to Eden and Ubuntu 12.04 and this worked again.

Sircube and Robertvg – the audio engine “branch” is a substantial rewrite of XBMC's audio handling. Per other postings, the code was cleaned up and rewritten to handle high quality digital audio in a cleaner manner. Dual output was requested to be added to this branch, but the author isn't interested. Since so much audio code was rewritten, it is unlikely that XHBL's patch can be easily applied to the post-merge XBMC master. As such, someone will likely have to do non-trivial coding work to apply XHBL's patch to the current master or to the eventual Frodo. Hopefully XHBL or another person with programming experience will update this patch sometime in the future.

---

Snippo and others getting /core/dvdplayer errors – you might want to use:

./configure –enable-external-libraries

instead of just ./configure. That resolved the /core/dvdplayer errors for me.

---

For anyone still trying to compile this on Linux or Ubuntu, here are the steps that worked for me (these assume there is no xbmc currently in your home directory but that you have git)

(1) cd ~

(2) git clone git://github.com/xbmc/xbmc.git

(3) cd xbmc

(4) git checkout -b eden origin/Eden

(5) sudo apt-get build-dep xbmc

[to make sure I had all dependencies, I ran this as well]

(6) sudo apt-get install make g++ gcc gawk pmount libtool nasm automake cmake gperf unzip bison libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libfribidi-dev liblzo2-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl3 libcurl4-gnutls-dev x11proto-xinerama-dev libxinerama-dev libxrandr-dev libxrender-dev libmad0-dev libogg-dev libvorbisenc2 libsmbclient-dev libmysqlclient-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libfaac-dev libenca-dev libxt-dev libxtst-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils libcdio-dev libsamplerate-dev libmms-dev libmpeg3-dev libfaad-dev libflac-dev libiso9660-dev libass-dev libssl-dev fp-compiler gdc libwavpack-dev libmpeg2-4-dev libmicrohttpd-dev libmodplug-dev libssh-dev gettext cvs

(7) ./bootstrap

(8) ./configure --enable-external-libraries

(9) make

(10) sudo make install

[at this point you have a functional Eden build without dual-audio]

(11) git branch dual-audio

(12) git checkout dual-audio

[Download Schumi2004's diff patch from post #493 in this thread. When I tried replacing the Eden source files with XHBL's patch files – I got a bunch of TinyXML include errors. Fixing the include errors created other reference errors, so I applied the Schumi2004 patch with:]

(13) git apply xbmc-11.0.1-999-dual-audio-patch.v0.2.patch

(14) make

(15) sudo make install

---

Finally, for Ubuntu users, I'll share that I had to use custom audio devices to get dual audio. Obviously, others' devices will differ, but for example:

For output one, I had to reference plughw:CARD=NVidia,DEV=9 on my custom audio device line for my 2.0 HDMI audio (I have an Nvidia video card with HDMI).

For my output two – SPDIF audio – I had to reference iec958:CARD=SB,DEV=0 on my custom audio device line. I also had to set ALC887-VD Digital as my default output device in gstreamer-properties (at a terminal window). This is my motherboard audio.

I have Pulse Audio removed because last time I setup dual-audio Pulse caused me a lot of grief.


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - tismon - 2012-07-04 05:42

Hmm, this probably has been covered, but 52 pages and most related words are too short for searches. Is there any way to use this with the PVR builds on windows? Simply swapping executables breaks PVR functionality as expected. Thank you.


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - teeedubb - 2012-07-05 05:10

(2012-06-12 17:55)ubuntu-xbmc Wrote:  I have Pulse Audio removed because last time I setup dual-audio Pulse caused me a lot of grief.

What kind of issues? I have been thinking about trying out PulseAudio to get dual audio output at an OS level.

(2012-07-04 05:42)tismon Wrote:  Hmm, this probably has been covered, but 52 pages and most related words are too short for searches. Is there any way to use this with the PVR builds on windows? Simply swapping executables breaks PVR functionality as expected. Thank you.

You can try VAC (virtual audio cables) to have this done outside of xbmc... never used it personally though...


RE: - acamp76144 - 2012-07-06 21:49

(2010-11-27 15:10)xhbl Wrote:  
mad-max Wrote:Hi there...

I applied the patch and compiled the source on windows to a directX build.
After installing the new dual audio output xbmc I can´t start it anymore...
missing dll d3dx9_42.dll...
other compiled builds don´t have this problem...
any hint? or any download-link of a working copy?

Go to microsoft web site, download The Microsoft DirectX® End-User Runtime and install it first.

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2da43d38-db71-4c1b-bc6a-9b6652cd92a3&displaylang=en

ive installed above but still get error saying SDL.DLL is missing from my computer. Tried rebooting as well but makes no difference. Relative noob here so any help would be appeciated.


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - tismon - 2012-07-06 22:29

(2012-07-05 05:10)teeedubb Wrote:  You can try VAC (virtual audio cables) to have this done outside of xbmc... never used it personally though...
I will have to look into this. I'm still curious though. What's preventing this from becoming a separate add-on?

Thanks


RE: [PATCH] Dual Audio Output support for XBMC (Eden Updated) - margro - 2012-07-08 16:00

(2012-07-04 05:42)tismon Wrote:  Hmm, this probably has been covered, but 52 pages and most related words are too short for searches. Is there any way to use this with the PVR builds on windows? Simply swapping executables breaks PVR functionality as expected. Thank you.
The dual audio patch is included in my latest Eden-pvr build for Windows. See my signature for the link.