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 - da-anda - 2013-08-20

just for the logs, I accidently changed my passthru device to "directsound" and tried to play the 5.1 FLAC and to my surprise it worked. Was still using d3d5582. Will give the most recent changes a try now.


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

Directsound sink handles the channels numbers correctly, so i am not surprised :-)


RE: Testing audio engine ActiveAE - negge - 2013-08-20

(2013-08-20, 17:19)FernetMenta Wrote: 2) is fixed. paplayer requests fading on a raw stream which does not make any sense. I intercept this attempt in the engine now.

Great, thanks!


RE: Testing audio engine ActiveAE - da-anda - 2013-08-20

here is the link to the most recent test build: http://mirrors.xbmc.org/test-builds/win32/XBMCSetup-20130820-14d9221-HEAD.exe


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

(2013-08-20, 11:24)jjd-uk Wrote: Going back to GUI sounds I've some new observations from when I was investigating my music playback distortion.

WASAPI - HDMI does after all output GUI sounds with stream silence disabled, however it seems to queue up a load of sounds then plays out in a burst, so I never heard them on my 1st round of tests because I wasn't carrying out enough GUI actions before starting playback. Take a long list and start scrolling, I probably get about 15 items down then sound will suddenly kick in with a quick burst of about 2 sec of multiple clicks that seem to have been buffered, then it will go silent again until you gone down another 15 or so items and then you get another burst of clicks, and so on.

Directsound - HDMI outputs GUI sounds with no problems with or without stream silence.

I think the problem with WASAPI is that it won't start playing until the buffer is filled completely. A click sound is too short. The best idea I have is to ask the sink whether it supports drain mode and enable streamsilence if not. Further implement a mode to release the sink after some period of idle regardless if streamsilence is chosen.


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

Personally I wouldn't mind if we got rid of GUI sounds all together


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

(2013-08-21, 01:23)jjd-uk Wrote: Personally I wouldn't mind if we got rid of GUI sounds all together

Now that is a brilliant idea Wink


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

@negge:
Can you test the 5.1 flacs on linux again, with that patch added: https://github.com/fritsch/xbmc/commit/7a26984d896b82907593b5747a19ee1ef2d4928f


RE: Testing audio engine ActiveAE - negge - 2013-08-21

(2013-08-20, 20:15)FernetMenta Wrote: @negge:
Can you test the 5.1 flacs on linux again, with that patch added: https://github.com/fritsch/xbmc/commit/7a26984d896b82907593b5747a19ee1ef2d4928f

Works perfectly!


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

Any regressions with other material? drop outs? increased cpu load? (The solution is a bit hacky ....)


RE: Testing audio engine ActiveAE - negge - 2013-08-21

None that I can see (including 5.1 FLAC in movies which I believe worked before this fix, though I could be mistaken here). It's a bit hard for me to check CPU load because it constantly sits at 4-8%.


RE: Testing audio engine ActiveAE - da-anda - 2013-08-21

5.1 FLAC is also working for me now via WASAPI. It still freezes though when I stop playback of that file (only via WASAPI, DirectSound is fine).


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

(2013-08-21, 10:37)da-anda Wrote: 5.1 FLAC is also working for me now via WASAPI. It still freezes though when I stop playback of that file (only via WASAPI, DirectSound is fine).

I wish I had spdif or hdmi on my Windows machine.
@da-anda could you please post a new log when it freezes.


RE: Testing audio engine ActiveAE - da-anda - 2013-08-21

here is a new log http://xbmclogs.com/show.php?id=47946
First I played a MP3 which gives serious crackle via WASAPI and maxed volume in XBMC. Then I lowered volume one notch and crackle was gone. Maxed it again and crackles where back. I can send you the file itself if you like.

After that I played the 5.1 FLAC, waited a few secs and pressed stop. Then it froze.

I noticed some crash dumps in the log folder which I uploaded here. Whoever can analyze those dumps, the according pdb file is here: http://mirrors.xbmc.org/test-builds/win32/XBMCSetup-20130820-14d9221-HEAD.pdb


RE: Testing audio engine ActiveAE - WiSo - 2013-08-22

@Rainer: I also still have the crackle via wasapi with the sample video I provided you and MP3's. MP3's play fine when I revert https://github.com/xbmc/xbmc/commit/e4fc0a51779709d1595c3a822d41b12ccb931889 (guess related to turning down the volume). The commit won't affect the video sample as it still crackles.