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

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

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


- sjw1 - 2011-03-17

Dixon Butz Wrote:I upgraded to 10.1 and then used the 10.0 dual audio patch. Have not had any problems. I may be back to 10.0 by doing this. Who cares as long as it works.
..but when you do that and look at your version, it says R10.34567 (ish). Is that just some text or has it really gone back?...


- TheAbu - 2011-03-17

Thank you very much xhbl (and live4ever for pointing me to this post). I really need to be able to use my sound card for headphone and the hdmi output of my graphic card for the tv speakers and it seems your patch will do that Smile (I am currently not on the right computer but I tried installing the .exe in my current version 10.1 of xbmc and it seems to work Smile
No, actually it seems I need to go back to a different version of xbmc Smile


- Dixon Butz - 2011-03-17

sjw1 Wrote:..but when you do that and look at your version, it says R10.34567 (ish). Is that just some text or has it really gone back?...

Where is the version info? In my log it says

Built on Dec 19 2010 (SVN:35647, compiler 1500)


- Cthugha - 2011-03-23

I thought this patch worked fine but have seen some really bad audio-sync issues since I started using it Sad

When xbmc 10.1 was released I changed back to the original .exe and upgraded. The patch should be removed then, right? (the dual audio settings are gone etc) But the sync issues remain...

Is there something else I need to do in order to uninstall this patch? Some settings in the xbmc xml-files or something?

Is there a new version for 10.1 coming?

Any other solutions? (need output to both hdmi and s/pdif)


- Torroa - 2011-03-24

The patch only applies to one file, and that file is replaced when upgrading to 10.1. If you are experiencing sync issues after 10.1 is installed, the problem lies elsewhere.

An 10.1 upgraded patch is also wanted..


- Cthugha - 2011-03-25

As I wrote I had similar sync issues before 10.1, when using this patch.

The patch has to save its dual audio settings somewhere... maybe they are still interfering with the audio/video syncing? :/


- thetimeofkane - 2011-03-27

Mate you are a legend this is fantastic, the final piece in the puzzle. Great work.


- digzz - 2011-03-27

Noper Wrote:I logged on with putty, shut down XBMC and renamed the running XBMC.bin. Then i used winscp to transfer the modified xbmc.bin and tried to start XBMX again. I got an error about missing lib. Installed the missing lib with sudo apt-get install. Started XBMC again. That's about it.. Dual audio output working, but sorry to say no HW acceleration.

I can't Find "XBMC.bin" on any directory on XBMC 10.1 Live. Sad


- Dolence - 2011-03-31

How can I obtain master r0222318 release? From SVN or GIT?


I was trying this way:

git clone git://github.com/xbmc/xbmc.git
git checkout 0222318

Quote:Note: checking out '0222318'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at 0222318... [osx] update README


When I try to apply

I dont know if it's supposed to be this way.


Then, I try to apply the patch:
patch < ../Downloads/master_r0222318_Support_Dual_Audio_v7.patch

Quote:patching file SystemGlobals.cpp
Hunk #1 FAILED at 48.
1 out of 1 hunk FAILED -- saving rejects to file SystemGlobals.cpp.rej
patching file ALSADirectSound.cpp
Hunk #1 FAILED at 50.
Hunk #2 FAILED at 96.
Hunk #3 FAILED at 319.
3 out of 3 hunks FAILED -- saving rejects to file ALSADirectSound.cpp.rej
patching file ALSADirectSound.h
Hunk #1 FAILED at 50.
1 out of 1 hunk FAILED -- saving rejects to file ALSADirectSound.h.rej
patching file AudioRendererFactory.cpp
Hunk #1 FAILED at 70.
Hunk #2 FAILED at 118.
Hunk #3 FAILED at 134.
Hunk #4 FAILED at 171.
4 out of 4 hunks FAILED -- saving rejects to file AudioRendererFactory.cpp.rej
patching file AudioRendererFactory.h
Hunk #1 FAILED at 31.
1 out of 1 hunk FAILED -- saving rejects to file AudioRendererFactory.h.rej
patching file CoreAudioRenderer.cpp
Hunk #1 FAILED at 344.
Hunk #2 FAILED at 363.
Hunk #3 FAILED at 505.
3 out of 3 hunks FAILED -- saving rejects to file CoreAudioRenderer.cpp.rej
patching file CoreAudioRenderer.h
Hunk #1 FAILED at 102.
1 out of 1 hunk FAILED -- saving rejects to file CoreAudioRenderer.h.rej
patching file IAudioRenderer.h
Hunk #1 FAILED at 41.
Hunk #2 FAILED at 69.
2 out of 2 hunks FAILED -- saving rejects to file IAudioRenderer.h.rej
patching file NullDirectSound.cpp
Hunk #1 FAILED at 41.
Hunk #2 FAILED at 48.
Hunk #3 FAILED at 69.
3 out of 3 hunks FAILED -- saving rejects to file NullDirectSound.cpp.rej
patching file NullDirectSound.h
Hunk #1 FAILED at 41.
1 out of 1 hunk FAILED -- saving rejects to file NullDirectSound.h.rej
patching file PulseAudioDirectSound.cpp
Hunk #1 FAILED at 144.
Hunk #2 FAILED at 165.
Hunk #3 FAILED at 363.
3 out of 3 hunks FAILED -- saving rejects to file PulseAudioDirectSound.cpp.rej
patching file PulseAudioDirectSound.h
Hunk #1 FAILED at 46.
1 out of 1 hunk FAILED -- saving rejects to file PulseAudioDirectSound.h.rej
patching file Win32DirectSound.cpp
Hunk #1 FAILED at 80.
Hunk #2 FAILED at 99.
Hunk #3 FAILED at 243.
3 out of 3 hunks FAILED -- saving rejects to file Win32DirectSound.cpp.rej
patching file Win32DirectSound.h
Hunk #1 FAILED at 45.
1 out of 1 hunk FAILED -- saving rejects to file Win32DirectSound.h.rej
patching file Win32WASAPI.cpp
Hunk #1 FAILED at 85.
Hunk #2 FAILED at 180.
Hunk #3 FAILED at 289.
Hunk #4 FAILED at 320.
4 out of 4 hunks FAILED -- saving rejects to file Win32WASAPI.cpp.rej
patching file Win32WASAPI.h
Hunk #1 FAILED at 40.
1 out of 1 hunk FAILED -- saving rejects to file Win32WASAPI.h.rej
patching file ExternalPlayer.cpp
Hunk #1 FAILED at 251.
Hunk #2 FAILED at 368.
2 out of 2 hunks FAILED -- saving rejects to file ExternalPlayer.cpp.rej
patching file DVDAudio.cpp
Hunk #1 FAILED at 71.
1 out of 1 hunk FAILED -- saving rejects to file DVDAudio.cpp.rej
patching file DVDAudio.h
Hunk #1 FAILED at 60.
1 out of 1 hunk FAILED -- saving rejects to file DVDAudio.h.rej
patching file DVDAudioCodec.h
Hunk #1 FAILED at 40.
Hunk #2 FAILED at 104.
2 out of 2 hunks FAILED -- saving rejects to file DVDAudioCodec.h.rej
patching file DVDAudioCodecPassthroughFFmpeg.cpp
Hunk #1 FAILED at 330.
Hunk #2 FAILED at 343.
2 out of 2 hunks FAILED -- saving rejects to file DVDAudioCodecPassthroughFFmpeg.cpp.rej
patching file DVDAudioEncoderFFmpeg.cpp
Hunk #1 FAILED at 124.
1 out of 1 hunk FAILED -- saving rejects to file DVDAudioEncoderFFmpeg.cpp.rej
patching file IDVDAudioEncoder.h
Hunk #1 FAILED at 26.
Hunk #2 FAILED at 39.
2 out of 2 hunks FAILED -- saving rejects to file IDVDAudioEncoder.h.rej
patching file DVDFactoryCodec.cpp
Hunk #1 FAILED at 69.
Hunk #2 FAILED at 222.
Hunk #3 FAILED at 238.
Hunk #4 FAILED at 260.
Hunk #5 FAILED at 281.
5 out of 5 hunks FAILED -- saving rejects to file DVDFactoryCodec.cpp.rej
patching file DVDFactoryCodec.h
Hunk #1 FAILED at 36.
1 out of 1 hunk FAILED -- saving rejects to file DVDFactoryCodec.h.rej
patching file DVDDemuxUtils.cpp
Hunk #1 FAILED at 95.
1 out of 1 hunk FAILED -- saving rejects to file DVDDemuxUtils.cpp.rej
patching file DVDDemuxUtils.h
Hunk #1 FAILED at 28.
1 out of 1 hunk FAILED -- saving rejects to file DVDDemuxUtils.h.rej
patching file DVDPlayerAudio.cpp
Hunk #1 FAILED at 131.
Hunk #2 FAILED at 150.
Hunk #3 FAILED at 179.
Hunk #4 FAILED at 188.
Hunk #5 FAILED at 201.
Hunk #6 FAILED at 260.
Hunk #7 FAILED at 274.
Hunk #8 FAILED at 281.
Hunk #9 FAILED at 294.
Hunk #10 FAILED at 303.
Hunk #11 FAILED at 310.
Hunk #12 FAILED at 319.
Hunk #13 FAILED at 335.
Hunk #14 FAILED at 363.
Hunk #15 FAILED at 432.
Hunk #16 FAILED at 447.
Hunk #17 FAILED at 459.
Hunk #18 FAILED at 482.
Hunk #19 FAILED at 489.
Hunk #20 FAILED at 504.
Hunk #21 FAILED at 535.
Hunk #22 FAILED at 554.
Hunk #23 FAILED at 581.
Hunk #24 FAILED at 614.
Hunk #25 FAILED at 777.
Hunk #26 FAILED at 791.
Hunk #27 FAILED at 798.
Hunk #28 FAILED at 828.
Hunk #29 FAILED at 876.
Hunk #30 FAILED at 903.
Hunk #31 FAILED at 913.
31 out of 31 hunks FAILED -- saving rejects to file DVDPlayerAudio.cpp.rej
patching file DVDPlayerAudio.h
Hunk #1 FAILED at 97.
Hunk #2 FAILED at 112.
Hunk #3 FAILED at 136.
Hunk #4 FAILED at 169.
Hunk #5 FAILED at 182.
Hunk #6 FAILED at 196.
Hunk #7 FAILED at 205.
7 out of 7 hunks FAILED -- saving rejects to file DVDPlayerAudio.h.rej
patching file PAPlayer.cpp
Hunk #1 FAILED at 75.
Hunk #2 FAILED at 118.
Hunk #3 FAILED at 200.
Hunk #4 FAILED at 297.
Hunk #5 FAILED at 306.
Hunk #6 FAILED at 327.
Hunk #7 FAILED at 385.
Hunk #8 FAILED at 426.
Hunk #9 FAILED at 437.
Hunk #10 FAILED at 446.
Hunk #11 FAILED at 554.
Hunk #12 FAILED at 571.
Hunk #13 FAILED at 614.
Hunk #14 FAILED at 743.
Hunk #15 FAILED at 912.
Hunk #16 FAILED at 965.
Hunk #17 FAILED at 980.
Hunk #18 FAILED at 990.
Hunk #19 FAILED at 1100.
19 out of 19 hunks FAILED -- saving rejects to file PAPlayer.cpp.rej
patching file PAPlayer.h
Hunk #1 FAILED at 141.
Hunk #2 FAILED at 158.
2 out of 2 hunks FAILED -- saving rejects to file PAPlayer.h.rej
patching file PlayerCoreFactory.cpp
Hunk #1 FAILED at 164.
1 out of 1 hunk FAILED -- saving rejects to file PlayerCoreFactory.cpp.rej
patching file AudioContext.cpp
Hunk #1 FAILED at 58.
Hunk #2 FAILED at 67.
Hunk #3 FAILED at 181.
Hunk #4 FAILED at 194.
Hunk #5 FAILED at 214.
5 out of 5 hunks FAILED -- saving rejects to file AudioContext.cpp.rej
patching file AudioContext.h
Hunk #1 FAILED at 41.
Hunk #2 FAILED at 71.
2 out of 2 hunks FAILED -- saving rejects to file AudioContext.h.rej
patching file GUISettings.cpp
Hunk #1 FAILED at 449.
1 out of 1 hunk FAILED -- saving rejects to file GUISettings.cpp.rej
patching file GUISettings.h
Hunk #1 FAILED at 74.
1 out of 1 hunk FAILED -- saving rejects to file GUISettings.h.rej
patching file GUIWindowSettingsCategory.cpp
Hunk #1 FAILED at 572.
Hunk #2 FAILED at 804.
Hunk #3 FAILED at 1036.
Hunk #4 FAILED at 1309.
Hunk #5 FAILED at 2791.
Hunk #6 FAILED at 2812.
Hunk #7 FAILED at 2822.
7 out of 7 hunks FAILED -- saving rejects to file GUIWindowSettingsCategory.cpp.rej
patching file GUIWindowSettingsCategory.h
Hunk #1 FAILED at 63.
1 out of 1 hunk FAILED -- saving rejects to file GUIWindowSettingsCategory.h.rej
patching file PCMRemap.cpp
Hunk #1 FAILED at 167.
Hunk #2 FAILED at 350.
Hunk #3 FAILED at 444.
3 out of 3 hunks FAILED -- saving rejects to file PCMRemap.cpp.rej
patching file PCMRemap.h
Hunk #1 FAILED at 103.
Hunk #2 FAILED at 124.
2 out of 2 hunks FAILED -- saving rejects to file PCMRemap.h.rej

Some hunks failed... and I cant compile. What I'm doing wrog?

Thanks in advance!


Try the full modified sources - xhbl - 2011-04-02

I had uploaded the full modified source files, git the corresponding version, using the modified source files to simply overwrite and then build.


Dolence Wrote:How can I obtain master r0222318 release? From SVN or GIT?


I was trying this way:

git clone git://github.com/xbmc/xbmc.git
git checkout 0222318



I dont know if it's supposed to be this way.


Then, I try to apply the patch:
patch < ../Downloads/master_r0222318_Support_Dual_Audio_v7.patch



Some hunks failed... and I cant compile. What I'm doing wrog?

Thanks in advance!



Bug should have be fixed now - xhbl - 2011-04-02

Eisi, Thanks for reporting the bug, I had fixed it, Please try the new patch and test if it works properly.Smile


Eisi2005 Wrote:@xhbl

first let me say thx for the new nightly v7 patch. I love the nightly rls the database is so much faster.

But in your windows exe for the master must be an error. With version 10.0 all is fine for me, but with the new exe i become only stereo sound on spdif and hdmi simultaneously. Here my settings under 10.0:

Optic/Coax
2.0
downmix yes
AC3 no
DTS no
Audio DEvice: DirectSound Nvidia HDMI Out

Optic/Coax
5.1
downmix yes
AC3 yes
DTS yes
Audio Device WASAPI S/PDIF

With this settings all is fine under the 10.0 i hear 2.0 sound over the hdmi to my tv and AC3 and DTS over spdif to my av-reiceiver.

The same settings under the master and i hear only stero to the s/pdif device no ac3 and dts.

Could you pls check this ? And pls pls pls release the exe for the master from 7.3. The database is so much better then in 10.0 and 10.1

Thx

Greets
Eisi



- reddevil - 2011-04-03

@xhbl: Thank you for this amazing patch (I registered on this forum just for this).
I tried it with 2 sound cards (both at analog 7.1) and seems to work fine.


- funkybudda - 2011-04-04

I'd just like to add that this works amazing with this:

http://www.amazon.co.uk/Veho-VSS-002w-Speaker-Including-Transmitting/dp/B002JC78G6

I now have my 7.1 surround, and a secondary portable audio output so I can listen to music in the Garden / anywhere, all controlled with the official Android Remote. Sweet.

It is much more elegant than using Virtual Audio Cable.


- gulp - 2011-04-05

Thank you!!! Great patch.

It will be included in official trunk?


- erhnam - 2011-04-05

Will this also work under OSX?