AudioEngine branch - DO NOT REQUEST BINARY BUILDS

  Thread Rating:
  • 15 Votes - 4.47 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
gnif Offline
Team-XBMC Developer
Posts: 442
Joined: Feb 2008
Reputation: 34
Location: Australia, Katoomba
Post: #1186
Updates:

* Optimized numerous things in the pass through code path
* Fixed an issue with the merged apple code incorrectly running on other platforms
* Found a long outstanding bug in CSoftAEStream::GetDelay (this is huge! it may fix many sync issues)
* Streams can now start in a paused auto start state, the stream resumes once buffers are filled.

@einhänder - I had a look at your logs, your running an old build, your issue is completely unrelated.

I am not scared of SVN - Cutting my hands open on the bleeding edge.
(This post was last modified: 2012-04-22 18:23 by gnif.)
find quote
einhänder Offline
Senior Member
Posts: 169
Joined: Sep 2008
Reputation: 0
Post: #1187
(2012-04-22 18:20)gnif Wrote:  @einhänder - I had a look at your logs, your running an old build, your issue is completely unrelated.

Hm, that's strange because according to the logs I built the branch on 20.04.2012. I used that version as a base for my report. Also I copied the git commit (cb7d1bee09f50dca60a9aee22290f80adc1c14b5) from the logs which match the version I pulled on that day.

EDIT: However right now I'm about to build a version based on you commits from today. Let's see if it changes anything.
(This post was last modified: 2012-04-22 18:58 by einhänder.)
find quote
gnif Offline
Team-XBMC Developer
Posts: 442
Joined: Feb 2008
Reputation: 34
Location: Australia, Katoomba
Post: #1188
@einhänder - perhaps you did not have debug enabled, your log is missing all the new Enumerate entries at startup.

Just found a bug also when skipping tracks that are in different formats, I will look into it tomorrow, bed time for me, 3am here Smile

I am not scared of SVN - Cutting my hands open on the bleeding edge.
(This post was last modified: 2012-04-22 19:18 by gnif.)
find quote
einhänder Offline
Senior Member
Posts: 169
Joined: Sep 2008
Reputation: 0
Post: #1189
Ok, I'll double check the debug logging, although I did set

Code:
<loglevel hide="true">1</loglevel>

in advancedsettings. Is there any additional debug logging facility for AE branch?
I'm going to post new logs as soon as I will have sorted out the logging problem.

Good night. Smile
(This post was last modified: 2012-04-22 19:24 by einhänder.)
find quote
Wanilton Offline
Posting Freak
Posts: 1,174
Joined: Jun 2010
Reputation: 27
Location: Florianópolis - Brazil
Post: #1190
Hello Gnif, too late for sleep..

I Try compile your recent version to windows, but this is broke in vcproject and vcproject.filters (missing includes), do you try fix this for us, please, when you have a time, of course.

AEEncoderFFmpeg.cpp
1>c:\xbmc-hd\xbmc\cores\audioengine\encoders\AEEncoderFFmpeg.h(23): fatal error C1083: Cannot open include file: 'Interfaces/AEEncoder.h': No such file or directory
1>c:\xbmc-hd\xbmc\cores\audioengine\Sinks/AESinkWASAPI.h(27): fatal error C1083: Cannot open include file: 'AEDeviceInfo.h': No such file or directory
SoftAE.cpp
SoftAESound.cpp
1>..\..\xbmc\cores\AudioEngine\Engines\SoftAESound.cpp(22): fatal error C1083: Cannot open include file: 'Interfaces/AESound.h': No such file or directory
SoftAEStream.cpp
1>..\..\xbmc\cores\AudioEngine\Engines\SoftAEStream.cpp(27): fatal error C1083: Cannot open include file: 'AEFactory.h': No such file or directory
AEPPAnimationFade.cpp
1>..\..\xbmc\cores\AudioEngine\PostProc\AEPPAnimationFade.cpp(23): fatal error C1083: Cannot open include file: 'AEFactory.h': No such file or directory
AESinkDirectSound.cpp
1>c:\xbmc-hd\xbmc\cores\audioengine\sinks\AESinkDirectSound.h(23): fatal error C1083: Cannot open include file: 'Interfaces/AESink.h': No such file or directory
AESinkNULL.cpp
1>c:\xbmc-hd\xbmc\cores\audioengine\engines\SoftAE.h(32): fatal error C1083: Cannot open include file: 'Interfaces/ThreadedAE.h': No such file or directory
AESinkProfiler.cpp
1>c:\xbmc-hd\xbmc\cores\audioengine\sinks\AESinkNULL.h(25): fatal error C1083: Cannot open include file: 'Interfaces/AESink.h': No such file or directory
1>c:\xbmc-hd\xbmc\cores\audioengine\sinks\AESinkProfiler.h(25): fatal error C1083: Cannot open include file: 'Interfaces/AESink.h': No such file or directory
AESinkWASAPI.cpp
AEBitstreamPacker.cpp
1>c:\xbmc-hd\xbmc\cores\audioengine\sinks\../Interfaces/AESink.h(25): fatal error C1083: Cannot open include file: 'AEAudioFormat.h': No such file or directory
AEBuffer.cpp
AEChannelInfo.cpp
AEConvert.cpp
AEDeviceInfo.cpp
1>c:\xbmc-hd\xbmc\cores\audioengine\utils\AEDeviceInfo.h(25): fatal error C1083: Cannot open include file: 'AEAudioFormat.h': No such file or directory
AEPackIEC61937.cpp
AERemap.cpp
1>c:\xbmc-hd\xbmc\cores\audioengine\utils\AERemap.h(23): fatal error C1083: Cannot open include file: 'AEAudioFormat.h': No such file or directory
AEStreamInfo.cpp
AEUtil.cpp
AEWAVLoader.cpp
1>c:\xbmc-hd\xbmc\cores\audioengine\utils\AEWAVLoader.h(24): fatal error C1083: Cannot open include file: 'AEAudioFormat.h': No such file or directory
DVDAudioCodecPassthrough.cpp
CrystalHD.cpp

Thanks, your job is great, congratulations from Brazil.

http://www.xbmcbrasil.net - Youtube Channel
Admin
Windows 8.1 - XBMC Helix Custom Plus - Aeon MQ 5
My Room Entertaiment´s
About me
(This post was last modified: 2012-04-22 19:38 by Wanilton.)
find quote
grote002 Offline
Member
Posts: 94
Joined: Jan 2004
Reputation: 0
Post: #1191
@gnif I tried the latest version and Dolby True HD seems to be working correctly now, no problems with the sound anymore, but DTS HD still doesnt work

Intel Core2Quad 3,2Ghz, 2Gb RAM, Nvidia GTS450 on Ubuntu 10.10, Denon AVR-2311, Denon POA4400A
find quote
Maxoo Offline
Fan
Posts: 359
Joined: Mar 2010
Reputation: 12
Location: Paris, France
Post: #1192
@einhänder : add debug when you compile.

Admin @ Passion-XBMC
(official french community)
find quote
gnif Offline
Team-XBMC Developer
Posts: 442
Joined: Feb 2008
Reputation: 34
Location: Australia, Katoomba
Post: #1193
@grote002 - Can you please provide a full log for DTS HD, and if possible a sample file also.

I am not scared of SVN - Cutting my hands open on the bleeding edge.
find quote
einhänder Offline
Senior Member
Posts: 169
Joined: Sep 2008
Reputation: 0
Post: #1194
(2012-04-23 11:40)Maxoo Wrote:  @einhänder : add debug when you compile.

As far as I remember the debug flag is necessary to get additional debugging symbols relevant for meaningful backtraces (gdb/core dump)? Nevertheless I'm going to build it with "debug" enabled to see if there will be a difference.

However I thought it would be a good idea to move "~/.xbmc" and to start with a fresh profile in order to see if there is something involved in writing the enumeration info to the log. I set up my audio settings as usual and surprisingly everything works like it should with that new profile - all issues were gone.

But there is a "but". As soon as I completely resembled my former settings it went back to the reported problems. Yet I wasn't able to track down which setting enforces the faulty behaviour.
Could anyone give me an example how the enumeration information in the log looks like please? So I could compare if these details are finally included.

EDIT: False alarm, yesterday evening it worked like described above, today it does not. At least it is not alway reproduceable.
(This post was last modified: 2012-04-23 14:25 by einhänder.)
find quote
gnif Offline
Team-XBMC Developer
Posts: 442
Joined: Feb 2008
Reputation: 34
Location: Australia, Katoomba
Post: #1195
@einhänder - fincheresque posted a sample a few posts back

I am not scared of SVN - Cutting my hands open on the bleeding edge.
find quote
fincheresque Offline
Donor
Posts: 129
Joined: Sep 2009
Reputation: 0
Post: #1196
I did? Oh well, I'm going to re-compile tonight and test again. I had the issue with a build built on Saturday where if I restarted lightdm, I would get no sound on the initial run of XBMC, but if I exited XBMC, and went back in, sound was fine.

Unfortunately I didn't have debugging turned on, and my wife was looking forward to starting Season 4 of SoA...so I couldn't go back and try and duplicate the issue with debugging turned on at that particular moment (real life...always interferring). I'll try again tonight and hopefully get some information the important folks can use.
find quote
einhänder Offline
Senior Member
Posts: 169
Joined: Sep 2008
Reputation: 0
Post: #1197
@gnif
Now I've got XBMC to print the needed information. There was no need to rebuild the bin, just using the parameter --debug helped.
Here is a log from my standard profile right after a fresh start: http://paste.pocoo.org/show/586242/

If you want me to re-post the logs from my previous report showing what happens during different situations then just let me know please.
find quote
fincheresque Offline
Donor
Posts: 129
Joined: Sep 2009
Reputation: 0
Post: #1198
@gnif I still can't get pastebin to accept my pastes. I don't know what the issue is... I presume it's me because nobody else seems to be complaining about it. Multiple PC's and browsers here just hang when posting.

In the mean time, I've noticed that in the log there's an extra line that's there when audio fails:
Code:
INFO: CAESinkALSA::EnumerateDevicesEx - Unable to open hdmi:CARD=NVidia,DEV=0 for capability detection

So it seems as though something is stealing the card, but again this wasn't an issue in builds prior to the large hold on development leading up to Eden's release.

Stupid question, anything I should be --enabling or --disabling with the ./configure prior to compile?

Here's the audio enumeration code:
Code:
19:14:53 T:3019335440   DEBUG: CAESinkALSA::EnumerateDevicesEx - Skipping device hw:0,2 as it does not have PCM playback ability
19:14:53 T:3019335440   DEBUG: CAESinkALSA::EnumerateDevicesEx - Unable to obtain ELD information for device hdmi:CARD=NVidia,DEV=0, make sure you have ALSA >= 1.0.25
19:14:53 T:3019335440    INFO: CAESinkALSA::EnumerateDevicesEx - Unable to open hdmi:CARD=NVidia,DEV=0 for capability detection
19:14:53 T:3019335440    INFO: Enumerated ALSA devices:
19:14:53 T:3019335440    INFO:     Device 1
19:14:53 T:3019335440    INFO:         m_deviceName      : hw:CARD=Intel,DEV=0
19:14:53 T:3019335440    INFO:         m_displayName     : HDA Intel
19:14:53 T:3019335440    INFO:         m_displayNameExtra: ALC1200 Analog
19:14:53 T:3019335440    INFO:         m_deviceType      : AE_DEVTYPE_PCM
19:14:53 T:3019335440    INFO:         m_channels        : FL,FR,BL,BR,FC,LFE
19:14:53 T:3019335440    INFO:         m_sampleRates     : 44100,48000,96000,192000
19:14:53 T:3019335440    INFO:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE
19:14:53 T:3019335440    INFO:     Device 2
19:14:53 T:3019335440    INFO:         m_deviceName      : iec958:CARD=Intel,DEV=0
19:14:53 T:3019335440    INFO:         m_displayName     : HDA Intel
19:14:53 T:3019335440    INFO:         m_displayNameExtra: ALC1200 Digital
19:14:53 T:3019335440    INFO:         m_deviceType      : AE_DEVTYPE_IEC958
19:14:53 T:3019335440    INFO:         m_channels        : FL,FR
19:14:53 T:3019335440    INFO:         m_sampleRates     : 44100,48000,88200,96000,192000
19:14:53 T:3019335440    INFO:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE
19:14:53 T:3019335440  NOTICE: load settings...
19:14:53 T:3019335440  NOTICE: special://profile/ is mapped to: special://masterprofile/
19:14:53 T:3019335440  NOTICE: loading special://masterprofile/guisettings.xml
19:14:53 T:3019335440  NOTICE: Getting hardware information now...
19:14:53 T:3019335440    INFO: Using digital output
19:14:53 T:3019335440    INFO: AC3 pass through is enabled
19:14:53 T:3019335440    INFO: DTS pass through is enabled
19:14:53 T:3019335440    INFO: AAC pass through is disabled
19:14:53 T:3019335440  NOTICE: Checking resolution 12
19:14:53 T:3019335440  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
19:14:53 T:3019335440   DEBUG: CPlayerCoreConfig::<ctor>: created player DVDPlayer for core 1
19:14:53 T:3019335440   DEBUG: CPlayerCoreConfig::<ctor>: created player oldmplayercore for core 1
19:14:53 T:3019335440   DEBUG: CPlayerCoreConfig::<ctor>: created player PAPlayer for core 3
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: system rules
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtv
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: hdhomerun/myth/rtmp/mms/udp
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: lastfm/shout
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtsp
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: streams
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: flv/aacp/sdp
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: mp2
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvd
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvdfile
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvdimage
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: sdp/asf
19:14:53 T:3019335440   DEBUG: CPlayerSelectionRule::Initialize: creating rule: nsv
19:14:53 T:3019335440    INFO: Using digital output
19:14:53 T:3019335440    INFO: AC3 pass through is enabled
19:14:53 T:3019335440    INFO: DTS pass through is enabled
19:14:53 T:3019335440    INFO: AAC pass through is disabled
19:14:53 T:3019335440  NOTICE: Checking resolution 12
19:14:53 T:3019335440  NOTICE: Default DVD Player: dvdplayer
19:14:53 T:3019335440  NOTICE: Default Video Player: dvdplayer
19:14:53 T:3019335440  NOTICE: Default Audio Player: dvdplayer
19:14:53 T:3019335440  NOTICE: Enabled debug logging due to GUI setting (2)
19:14:53 T:3019335440  NOTICE: Log level changed to 2
19:14:53 T:3019335440  NOTICE: Loading media sources from special://masterprofile/sources.xml
19:14:53 T:3019335440    INFO: creating subdirectories
19:14:53 T:3019335440    INFO: userdata folder: special://masterprofile/
19:14:53 T:3019335440    INFO: recording folder:
19:14:53 T:3019335440    INFO: screenshots folder:
19:14:53 T:3019335440    INFO: thumbnails folder: special://masterprofile/Thumbnails
19:14:53 T:3019335440    INFO: load language info file: special://xbmc/language/English/langinfo.xml
19:14:53 T:3019335440   DEBUG: trying to set locale to en_CA.UTF-8
19:14:53 T:3019335440    INFO: global locale set to en_CA.UTF-8
19:14:53 T:3019335440    INFO: load language file: special://xbmc/language/English/strings.xml
19:14:53 T:3019335440    INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
19:14:53 T:3019335440    INFO: CAESinkALSA::Initialize - Attempting to open device hw:CARD=Intel,DEV=0
19:14:53 T:3019335440    INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
19:14:53 T:3019335440    INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
19:14:53 T:3019335440   DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 2048, periods 4, bufferSize 8192
19:14:53 T:3019335440   DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 2048, periods 4, bufferSize 8192
19:14:53 T:3019335440   DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 186 ms
19:14:53 T:3019335440    INFO: CSoftAE::InternalOpenSink - ALSA Initialized:
19:14:53 T:3019335440    INFO:   Output Device : hw:CARD=Intel,DEV=0
19:14:53 T:3019335440    INFO:   Sample Rate   : 44100
19:14:53 T:3019335440    INFO:   Sample Format : AE_FMT_S32NE
19:14:53 T:3019335440    INFO:   Channel Count : 2
19:14:53 T:3019335440    INFO:   Channel Layout: FL,FR
19:14:53 T:3019335440    INFO:   Frames        : 2048
19:14:53 T:3019335440    INFO:   Frame Samples : 4096
19:14:53 T:3019335440    INFO:   Frame Size    : 8
19:14:53 T:3019335440   DEBUG: CSoftAE::Initialize - Using speaker layout: 7.1
19:14:53 T:3014589296   DEBUG: Thread CSoftAE start, auto delete: 0
19:14:53 T:3014589296    INFO: CSoftAE::Run - Thread Started
find quote
Maxoo Offline
Fan
Posts: 359
Joined: Mar 2010
Reputation: 12
Location: Paris, France
Post: #1199
If pastebin doesn't work, use http://www.anonpaste.tk/

Admin @ Passion-XBMC
(official french community)
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,641
Joined: Feb 2011
Reputation: 112
Location: germany
Post: #1200
little offtopic, but i can't stand to clear these things up:

@einhänder - i guess activating debugging in XBMC system settings would do the trick aswell
@fincheresque - sounds like a mtu problem. You could try to reduce the MTU below 1500 (e.x. 1400) on the network adapter you use for pastebin.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Post Reply