Kodi Community Forum
AudioEngine branch - DO NOT REQUEST BINARY BUILDS - 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: AudioEngine branch - DO NOT REQUEST BINARY BUILDS (/showthread.php?tid=78289)



- gnif - 2011-07-20

Today's Update

* Fixed invalid memory access in the new PAP code, caused strange behaviour (track skip)
* Late stream open so that we can support an audiophile mode later
* Fixed invalid size request from the AudioDecoder
* Stop/Pause/Resume of songs now fades in/out over 80ms


- tungmeister - 2011-07-20

Just compiled todays updates and now I can get sound from dolby digital and dts media, though it still plays fast without any sound with content that has HD audio, But I still get no sound from any other source such as music files and navigation sounds.


- Wanilton - 2011-07-20

Just compiled today with news corrections, and lost info BITS in fullscreen..audio work in movies, in music there are trouble when i start in recent, don´t work, no audio, if run song in music artist, or music album, it´s ok, sound is perfect...My test windows 7 64 bits, receiver onkyo 705 via HDMI, skin aeonmq. If run movie first, audio is ok in recents too, but change music for other music in recent cause same trouble, no audio again..
If I set on for use exclusive mode, the troubles persist..I´am using direct sound..I think dalay is cause this problem, when i run a song in music, album, the first music audio is ok, change for a second track result in no audio..
In my case I Don´t have problem fast video, it´s ok for me DTS, DTS HD MA, Dolby, Dolby true HD...my videos ok, my problem only with mp3 and flac music.


- DexterF - 2011-07-20

Just found this thread - figured drc is not top prio but in the making - is it in the code already? (Or are there any other means yet to make dts soundtracks not blast the entire block to rubble?)


- indy5 - 2011-07-20

tungmeister Wrote:I've tried it both set to the device name and left on default it still fails to produce any sound in exclusive mode, I've just recompiled using the latest updates and I'm still having the issue, without exclusive mode enabled everything works apart from HD audio. Here's my latest debug log http://pastebin.com/TrW9n3wL

I am having something similar with an Nvidia GT 520 card.

http://pastebin.com/CYCRF4iZ

Something also of note, my sound playback does in fact work, but I am not confident it's working correctly, due to these errors.

update:
I disabled exclusive mode in the audio setup in windows and now it looks like the device gets initialized, but I get no sound and fast video

13:53:54 T:2404 M:2488692736 INFO: Output Device : SAMSUNG-1 (NVIDIA High Definition Audio)
13:53:54 T:2404 M:2488692736 INFO: Sample Rate : 48000
13:53:54 T:2404 M:2488692736 INFO: Sample Format : AE_FMT_FLOAT
13:53:54 T:2404 M:2488692736 INFO: Channel Count : 8
13:53:54 T:2404 M:2488692736 INFO: Channel Layout: FL,FR,FC,LFE,BL,BR,SL,SR
13:53:54 T:2404 M:2488692736 INFO: Frames : 384
13:53:54 T:2404 M:2488692736 INFO: Frame Samples : 3072
13:53:54 T:2404 M:2488692736 INFO: Frame Size : 32
13:53:54 T:2404 M:2488692736 DEBUG: CSoftAE::Initialize - Using speaker layout: 7.1
13:53:54 T:8776 M:2488610816 DEBUG: Thread CThread start, auto delete: 0
13:53:54 T:8776 M:2488610816 INFO: CSoftAE::Run - Thread Started


- azaze1 - 2011-07-21

I looked at the audioengine branch and the last time any additions were made was Dec of last year. I can't be looking at the right repository or the right branch.

Sorry for such a newb question but what is the proper GIT url and branch for the active AE branch being developed and tested here ?


- hochopeper - 2011-07-21

azaze1 Wrote:Sorry for such a newb question but what is the proper GIT url and branch for the active AE branch being developed and tested here ?

github.com/gnif/xbmc


- azaze1 - 2011-07-21

hochopeper Wrote:github.com/gnif/xbmc

Thank you, I'll have to check when I get home... I thought that's what I had chosen last night, but the installer that was built was just like the nightly builds from main but with -dx.exe at the end instead of -master.exe Only bitstreaming options were for DTS and AC3... no master audio or truehd.

Thanks


- ArtVandelae - 2011-07-21

tungmeister and indy5,

Try building from my fork and see what happens. I added some extra logging to the WASAPI code to try and isolate any problems.

https://github.com/ArtVandelae/xbmc


- indy5 - 2011-07-21

ArtVandelae Wrote:tungmeister and indy5,

Try building from my fork and see what happens. I added some extra logging to the WASAPI code to try and isolate any problems.

https://github.com/ArtVandelae/xbmc

Pulling down now, I will let you know how it turns out.

One thing I did notice is that I had better results when unchecking "Give exclusive Mode Applications Priority" under the advanced HDMI settings in Win7. Files were playing back and the log was cleaner.


- joelmeans - 2011-07-21

I just got a GT520 today, so I decided to try out the AE branch for DTS-HD MA, TrueHD, and LPCM from my bluray rips. I am running on Linux (Mythbuntu Natty). I can get DTS-HD MA to work fine, but when I try TrueHD, the video is jumpy, and when I try LPCM, there is no sound at all. I can play an LPCM track with aplay, but the channels are mapped wrong. Any thoughts on all of this?
Thanks.


- gnif - 2011-07-21

@joelmeans - Notes on this -> AE is not ready for general use.

People, STOP posting problems without posting a full debug report, if you cant do this, stop using AE as it is not stable yet


- joelmeans - 2011-07-21

gnif Wrote:@joelmeans - Notes on this -> AE is not ready for general use.

Yes, I understand. I was trying to help out with a bug report.

Quote:People, STOP posting problems without posting a full debug report, if you cant do this, stop using AE as it is not stable yet

But, I do realize a bug report isn't helpful without logs. Sorry about that. Here you go:

LPCM (no sound): http://pastebin.com/RGn9hesk
TrueHD (choppy video): http://pastebin.com/9xxzh68R
DTS-HD MA (good): http://pastebin.com/UVDnQxb4

I have selected HDA NVidia hdmi as the audio output device and the passthrough device.
Let me know if I can give you any more info.


- gnif - 2011-07-22

Another update:

* Changed raw pointer references to AEChLayout to a proper class CAEChannelInfo, this fixed an ALSA bug and exposed 3 other potential bugs that could have been affecting people.
* Fixed 1 to 1 output of channels when playing files that have less channels then the configured channel layout, eg. stereo plays as stereo

NOTE: If you have crossfade enabled, AE will end up having to mix two streams, so the 2nd stream will have to be resampled/downmixed if the format is incompatible with the first track, this is unavoidable...

NOTE 2: Currently this happens even with cross-fade disabled due to enforced gapless, this will be fixed soon.

@joelmeans - Sorry, I was not pointing the finger at you, just want people to realize that if they want support I need detailed information.

Your LPCM log, is not LPCM
Code:
07:24:59 T:140461318592256 M:3586920448    INFO: CSoftAE::GetStream - AE_FMT_AC3, 48000, 2, RAW,RAW
07:24:59 T:140461318592256 M:3584380928    INFO: CSoftAE::OpenSink - RAW passthrough enabled

Can you please provide me a sample of your TrueHD file?

since DTS-HD works it sounds like your settings are all correct, but just for kicks can you please try and set your channel layout to 5.1 or better when you do the TrueHD test?


- joelmeans - 2011-07-22

gnif Wrote:@joelmeans - Sorry, I was not pointing the finger at you, just want people to realize that if they want support I need detailed information.

Understood. No prob. Thanks for you work and your help.

Quote:Your LPCM log, is not LPCM
Code:
07:24:59 T:140461318592256 M:3586920448    INFO: CSoftAE::GetStream - AE_FMT_AC3, 48000, 2, RAW,RAW
07:24:59 T:140461318592256 M:3584380928    INFO: CSoftAE::OpenSink - RAW passthrough enabled

Try this one: http://pastebin.com/V5zWzYCX

I double checked it.

Code:
20:34:31 T:140697769023232 M:2983288832  NOTICE: Creating audio stream (codec id: 65548, channels: 6, sample rate: 48000, no pass-through)
20:34:31 T:140697769023232 M:2983288832    INFO: CSoftAE::GetStream - AE_FMT_S16NE, 48000, 6, FL,FR,FC,LFE,BL,BR

Interestingly, there is no CSoftAE::OpenSink in there.

Quote:Can you please provide me a sample of your TrueHD file?

since DTS-HD works it sounds like your settings are all correct, but just for kicks can you please try and set your channel layout to 5.1 or better when you do the TrueHD test?

I am re-ripping that disc, just to be sure. If I still have the problem, I will cut you a clip. I did try with 5.1 channel layout, but the video was still jerky. I will let you know what the new rip looks like.