Kodi Community Forum
Testing audio engine ActiveAE - 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: Testing audio engine ActiveAE (/showthread.php?tid=170338)



RE: Testing audio engine ActiveAE - jjd-uk - 2013-08-29

Just to confirm what I said on IRC.

Using DanielaE's [WINDOWS][PATCH]Bitstream output of HD audio formats build the E-AC3 7.1 Channel Check sample works perfectly as a passthrough format with my AVR detecting it as DD+ 7.1, sorry fritsch I know you were hoping it was a duff sample.

DanielaE's source is at https://github.com/DanielaE/xbmc/commits/master_HD-Audio

From what I can see from the commit history, the E-AC3 improvements seem to be centred around these commits:

https://github.com/DanielaE/xbmc/commit/9e64b075f7490bbebbc7515fa9c86e3ef71e4bd8
https://github.com/DanielaE/xbmc/commit/0a56c49607695530b29d3f1af1823a7f1e885ebb
https://github.com/DanielaE/xbmc/commit/01a8b7bb6259992cd0c2f0ae5b8f0d88cd04ffa0
https://github.com/DanielaE/xbmc/commit/c05126eb130256fec5c5e6f519798d5572033905

No idea if that will be of help since it's the pre-AE audio core and I'm no coder, but hopefully it might at least provide some pointers in the right direction.


RE: Testing audio engine ActiveAE - ray1112 - 2013-08-29

(2013-08-29, 13:00)fritsch Wrote: @ray1112: Can you test with that version: http://mirrors.xbmc.org/test-builds/win32/XBMCSetup-20130829-1887753-aefixes2.exe Check how often it is blinking now.
Sorry I haven't Windows.
I checked the last build from git (13.0-ALPHA7 Git:20130829-18a4377).
The result is the same (display is blinking with about 0.5 sec period).
Log: http://pastebin.com/SantZZPy


RE: Testing audio engine ActiveAE - fritsch - 2013-08-29

Checkout my aefixes2 branch and build it, please.
Here: https://github.com/fritsch/xbmc/tree/aefixes2

Make sure you have the "Streamsilence when idle" enabled.

Edit: I have sent you a PM on howto checkout aefixes2 branch and build


RE: Testing audio engine ActiveAE - ray1112 - 2013-08-30

(2013-08-29, 22:42)fritsch Wrote: Checkout my aefixes2 branch and build it, please.
Here: https://github.com/fritsch/xbmc/tree/aefixes2

Make sure you have the "Streamsilence when idle" enabled.
How can I switch to you branch?

Code:
$ git clone https://github.com/fritsch/xbmc/tree/aefixes2
Cloning into 'aefixes2'...
fatal: https://github.com/fritsch/xbmc/tree/aefixes2/info/refs not found: did you run git update-server-info on the server?

$ git clone git://github.com/fritsch/xbmc/tree/aefixes2
Cloning into 'aefixes2'...
fatal: remote error:
  fritsch/xbmc/tree/aefixes2 is not a valid repository name
  Email [email protected] for help



RE: Testing audio engine ActiveAE - Martijn - 2013-08-30

(2013-08-30, 09:05)ray1112 Wrote:
(2013-08-29, 22:42)fritsch Wrote: Checkout my aefixes2 branch and build it, please.
Here: https://github.com/fritsch/xbmc/tree/aefixes2

Make sure you have the "Streamsilence when idle" enabled.
How can I switch to you branch?

Code:
$ git clone https://github.com/fritsch/xbmc/tree/aefixes2
Cloning into 'aefixes2'...
fatal: https://github.com/fritsch/xbmc/tree/aefixes2/info/refs not found: did you run git update-server-info on the server?

$ git clone git://github.com/fritsch/xbmc/tree/aefixes2
Cloning into 'aefixes2'...
fatal: remote error:
  fritsch/xbmc/tree/aefixes2 is not a valid repository name
  Email [email protected] for help
These questions don't belong in a testing thread.

https://help.github.com/


RE: Testing audio engine ActiveAE - massa84 - 2013-08-30

(2013-08-29, 20:35)massa84 Wrote:
(2013-08-29, 09:13)fritsch Wrote: Only thing I see:
Quote:19:26:27 T:6264 ERROR: CAESinkWASAPI::InitializeExclusive: IsFormatSupported failed (AUDCLNT_E_UNSUPPORTED_FORMAT) - trying to find a compatible format

Please supply a debug log

log with active ae enabled:
http://xbmclogs.com/show.php?id=52036

log with active ae disabled:
http://xbmclogs.com/show.php?id=52034

were the logs usefull?
there's something else i can do to help debugging?


RE: Testing audio engine ActiveAE - jjd-uk - 2013-08-30

(2013-08-30, 09:54)massa84 Wrote:
(2013-08-29, 20:35)massa84 Wrote:
(2013-08-29, 09:13)fritsch Wrote: Only thing I see:

Please supply a debug log

log with active ae enabled:
http://xbmclogs.com/show.php?id=52036

log with active ae disabled:
http://xbmclogs.com/show.php?id=52034

were the logs usefull?
there's something else i can do to help debugging?

You've not mentioned whether you only get the problem with ActiveAE audio engine enabled? or whether you get it with the default SoftAE audio engine as well?


RE: Testing audio engine ActiveAE - massa84 - 2013-08-30

(2013-08-30, 10:19)jjd-uk Wrote: You've not mentioned whether you only get the problem with ActiveAE audio engine enabled? or whether you get it with the default SoftAE audio engine as well?

i did in the first post.

i have the same problem with both activeAE and softAE.
the difference between the two engines is that using activeAE, when i get the sounds corruption after i stop the movie, i also hear a cracking noise every couple of seconds.


RE: Testing audio engine ActiveAE - FernetMenta - 2013-08-30

did you try with DirectSound as well?


RE: Testing audio engine ActiveAE - jjd-uk - 2013-08-30

(2013-08-30, 10:38)massa84 Wrote:
(2013-08-30, 10:19)jjd-uk Wrote: You've not mentioned whether you only get the problem with ActiveAE audio engine enabled? or whether you get it with the default SoftAE audio engine as well?

i did in the first post.

i have the same problem with both activeAE and softAE.
the difference between the two engines is that using activeAE, when i get the sounds corruption after i stop the movie, i also hear a cracking noise every couple of seconds.
I'm not a dev but I've looked at the logs but don't see anything obvious, however from the logs the I see you are using WASAPI, so if there is a bug here it might be with the WASAPI sink since that's what the 2 audio engines have in common.

What do you have Speaker Configuration set to? log suggests to me it might be 5.1, this should be set to 2.0.

Try with "Boost volume level on downmix" disabled, and also definitely try with Directsound as suggested above.

The only other thing I see in the log is DXVA warnings, I don't believe that would affect audio, but since you have an i3 you don't really need hardware acceleration so try with DXVA2 disabled as well.


RE: Testing audio engine ActiveAE - massa84 - 2013-08-30

ignore this... i wrote something that was really stupid.


RE: Testing audio engine ActiveAE - ray1112 - 2013-08-30

(2013-08-29, 22:42)fritsch Wrote: Checkout my aefixes2 branch and build it, please.
Here: https://github.com/fritsch/xbmc/tree/aefixes2

Make sure you have the "Streamsilence when idle" enabled.

Edit: I have sent you a PM on howto checkout aefixes2 branch and build
Unfortunately the problem (AVR display blinking) rests.

Log: http://pastebin.com/xEbPmnxs


RE: Testing audio engine ActiveAE - fritsch - 2013-08-30

Did the interval change? Or blinking exactly the same interval?
This only happens in idle, right?

Does anything change, if you do:

sudo -s
echo 0 > /sys/module/snd_hda_intel/parameters/power_save
echo N > /sys/module/snd_hda_intel/parameters/power_save_controller


RE: Testing audio engine ActiveAE - ray1112 - 2013-08-30

(2013-08-30, 22:46)fritsch Wrote: Did the interval change? Or blinking exactly the same interval?

This only happens in idle, right?
I think the interval is shorter (3-5 times per second).

This only happens in idle, right? Yes. When I play music the display is not blinking.

(2013-08-30, 22:46)fritsch Wrote: Did the interval change? Or blinking exactly the same interval?
This only happens in idle, right?

Does anything change, if you do:

sudo -s
echo 0 > /sys/module/snd_hda_intel/parameters/power_save
echo N > /sys/module/snd_hda_intel/parameters/power_save_controller

Before XBMC starting or when XBMC is working?


RE: Testing audio engine ActiveAE - fritsch - 2013-08-30

Does not matter :-)

Try the powersaving settings first, please. I pushed another code change, so just go to the folder you checkout xbmc and do git pull, that will update, afterwarwards a make -j5 is enough.

Thanks for your help.