[PATCH] Dual Audio Output support for XBMC (Eden Updated)

  Thread Rating:
  • 18 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Bas. Offline
Junior Member
Posts: 15
Joined: Dec 2009
Reputation: 0
Post: #16
Sometimes life is so simple Big Grin Thanks Smile
find quote
distler Offline
Junior Member
Posts: 1
Joined: Nov 2010
Reputation: 0
Post: #17
Nice! Been looking for a way to have 2-channel HDMI sound and Toslink DTS.
Best thing since sliced bread? .. close call!
find quote
mad-max Online
Posting Freak
Posts: 1,479
Joined: Jul 2010
Reputation: 59
Location: Germany
Post: #18
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?

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
JamieWolf Offline
Junior Member
Posts: 1
Joined: Nov 2010
Reputation: 0
Post: #19
Download the newst DirectX Version from Microsoft to get rid of the DLL error
find quote
xhbl Offline
Junior Member
Posts: 41
Joined: Nov 2010
Reputation: 20
Location: CA
Post: #20
Well, the first patch 'Support_DualAudio_Output_Basedon_SVN_Rev35252.patch' should be OBSOLETED now. Please apply new patch 'Support_DualAudio_Output_Basedon_SVN_Rev35252_v2.patch'

Because there is problem of out of synchronization of the 2nd audio output for video playback.

I used a stand-alone thread for the decoding and output of the 2nd audio in the previous patch, but this will sometimes cause out of synchronization with video; so I use another method that decode and output 2nd audio within the same thread of the 1st audio. and the 2nd audio output will be synchronized with the 1st audio output, thus fix the bug of out of synchronization with video playback.
find quote
xhbl Offline
Junior Member
Posts: 41
Joined: Nov 2010
Reputation: 20
Location: CA
Post: #21
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/de...laylang=en
find quote
Sylus Offline
Junior Member
Posts: 48
Joined: Jan 2010
Reputation: 0
Post: #22
Will the patch be included after the final release of dharma?
find quote
sdsnyr94 Offline
Fan
Posts: 512
Joined: Aug 2009
Reputation: 2
Location: Greensboro, NC
Post: #23
OK, so this looks great. All your screenshots indicate a Windows version of XBMC. Will the Patch work correctly on Linux/Live?

If so, is there anything special I need to do with .asound.conf?
find quote
azido Offline
Posting Freak
Posts: 1,880
Joined: Nov 2008
Reputation: 1
Location: Stuttgart, Germany
Post: #24
honestly, just 2 days ago i was thinking

"man, i would love to have the ability to have the gui sounds, standard audio (music as mp3) or better ANY 2-channel stuff being played by my analog device, while everything else having multichannel audio will be sent to my digital receiver - and all that without the hassle of manually changing the audio device in the settings"

..will this be possible with your patch?

edit: after thinking further, your patch seems to output audio to both devices simultaneously. how about this:

- user fills in the correct devices, one for analog, one for digital output in settings.
- an additional output "selector" with a corresponding onscreen-label (or simply a switch) will be available for skinners to implement into their skin.
- user can assing a key to that switch in keymap, thus making it available as a button on his remote.

benefit:

based on what kind of audio the user wants to play (being 2-channel audio as an mp3, or being 5.1 sound of a movie, which can be easily determined by the proper flag of the video) the user can easily switch between audio 1 and audio 2 with a simple keypress. skinners could also implement the "audio switch" into the osd dialog so the user can decide which device to use for the currently running movie or episode based on the available audio sources.

in my dreams xbmc can decide which audio device to use as soon as the file is triggered to play without any user intervention beside setting those two devices up once in his setup (which of course would mean the audio device setup is kind of fixed like audio 1 represents an analog and audio 2 a digital device, else the whole idea becomes kinda useless).

cheers,azido :;):
(This post was last modified: 2010-11-28 00:19 by azido.)
find quote
xhbl Offline
Junior Member
Posts: 41
Joined: Nov 2010
Reputation: 20
Location: CA
Post: #25
sdsnyr94 Wrote:OK, so this looks great. All your screenshots indicate a Windows version of XBMC. Will the Patch work correctly on Linux/Live?

If so, is there anything special I need to do with .asound.conf?

I also patch the sources code under linux/live, but I do not build and test.
find quote
mad-max Online
Posting Freak
Posts: 1,479
Joined: Jul 2010
Reputation: 59
Location: Germany
Post: #26
xhbl Wrote:Go to microsoft web site, download The Microsoft DirectX End-User Runtime and install it first.

http://www.microsoft.com/downloads/en/de...laylang=en

thanks for your answer, but this is what i tried on friday several times...
A build of the same SVN Revision without the patch works great, so I thought it might be a problem with my build...
well...will see if I can get this on a test-machine...

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
(This post was last modified: 2010-11-28 06:38 by mad-max.)
find quote
DigitALL Offline
Member
Posts: 82
Joined: Nov 2009
Reputation: 4
Post: #27
spiff Wrote:he posted that patch, what more do you needConfused

I am a linux user so I do not have the knowledge to patch this feature to a linux or OsX xbmc release. I am sure that it is nice to have such feature and nevertheless many others would benefit from it.

So spiff, you guys are the masters here, what about to include this feature by the XBMC team on all platforms?
It could be very well included in a RC2, isn't it?
find quote
waldo22 Offline
Donor
Posts: 764
Joined: Sep 2007
Reputation: 2
Location: Chapel Hill, NC, USA
Post: #28
DigitALL Wrote:I am a linux user so I do not have the knowledge to patch this feature to a linux or OsX xbmc release. I am sure that it is nice to have such feature and nevertheless many others would benefit from it.

So spiff, you guys are the masters here, what about to include this feature by the XBMC team on all platforms?
It could be very well included in a RC2, isn't it?

Dharma has been closed to new features for months now.

Once Dharma final is out, this could be included in the nightlies.

-Wes
find quote
a11599 Offline
Team-Kodi Member
Posts: 309
Joined: Sep 2010
Reputation: 3
Location: Budapest, Hungary
Post: #29
Doesn't work with WASAPI here, but runs fine with DirectSound.
find quote
sdsnyr94 Offline
Fan
Posts: 512
Joined: Aug 2009
Reputation: 2
Location: Greensboro, NC
Post: #30
Patch seems to fail in Linux... I am not savvy enough to know how/where. If someone smarter than me gets it working I would love to try it, however as this is a Dev thread, I am not asking for help.

Hopefully this, or some variation of this, can be included in pre-Eden builds. Count me as someone who would find this feature most usefull!

Suggestion:
How about adding a second "tab" on the left side under Audio Output. Maybe call it "Audio Output 2" or "Dual Audio", so that you do not have all the Audio settings crammed into one screen. In that "tab" have all the options grayed out, and have a radio button at the top, something like "Enable Dual Audio Devices", that enables the sub options.
find quote
Post Reply