XBMC Community Forum
AudioEngine branch - DO NOT REQUEST BINARY BUILDS - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: AudioEngine branch - DO NOT REQUEST BINARY BUILDS (/showthread.php?tid=78289)



- apgood - 2011-05-13 00:47

Great work. Will download it and test


- apgood - 2011-05-13 01:11

ArtVandelae Wrote:Alright, new test build. There was a tiny unsigned int wrapping bug in the stream code that took forever to track down because when it occurred the whole playback pipeline would get backed up and cause buffer overflows and error messages everywhere but where the problem actually was. The good news is that the resampler should now work perfectly. I've tried several clips that used to crash and they all work perfectly.

Have at it: http://www.multiupload.com/LQT1YGSKPM

No go mp3 audio still garbled for me.... If there is any sort of additional info a can provide (e.g. logs) then just let me know where i need to get them from...

Edit: Ok found problem. I did this "try it with Settings->Video->Playback->Sync Playback to Display turned off" and the mp3 audio is no longer garbled. So I guess there's a bug in the code somewhere related to this... hope this helps


- ArtVandelae - 2011-05-13 01:43

apgood Wrote:No go mp3 audio still garbled for me.... If there is any sort of additional info a can provide (e.g. logs) then just let me know where i need to get them from...

Edit: Ok found problem. I did this "try it with Settings->Video->Playback->Sync Playback to Display turned off" and the mp3 audio is no longer garbled. So I guess there's a bug in the code somewhere related to this... hope this helps

It's not really a 'bug'. The code to adjust the audio to be in sync with the video just hasn't been updated to work perfectly with AE yet. It's on the to-do list.


- apgood - 2011-05-13 02:03

Ok no worries I'll just for.it to be updated then before I use that option. Smile


- ArtVandelae - 2011-05-13 03:56

Unpack this exe and overwrite the previous XBMC.exe. See if this fixes your garbled mp3s.

http://www.multiupload.com/CN8T8GVBA5


- Calvados - 2011-05-13 14:14

@gnif: your last merge with ArtVandelae code doesn't compile on Linux, some header fudge I think.


- apgood - 2011-05-14 01:35

ArtVandelae Wrote:Unpack this exe and overwrite the previous XBMC.exe. See if this fixes your garbled mp3s.

http://www.multiupload.com/CN8T8GVBA5

Thanks Smile I'll test it tonight and let you know how it goes.


- apgood - 2011-05-14 06:38

ArtVandelae Wrote:Unpack this exe and overwrite the previous XBMC.exe. See if this fixes your garbled mp3s.

http://www.multiupload.com/CN8T8GVBA5

Thanks ArtVandelae. Tested this with mp3 sound track and video sync enabled. Worked perfectly.


- HeresJohnny - 2011-05-14 10:14

I've tested the Windows build with an Nvidia ION via HDMI and I get either no sound or freezes :-(. Hopefully AE will not affect XBMC generally this way once it's merged. All I was really hoping for was that the audio engine would finally be honouring the correct bitdepth and not downsample everything to 16bit... the passthrough via WASAPI already seems to work in Dharma for the formats I'm using. As a music lover, I would have replaced foobar with XBMC in that case. Sorry for ranting.


- dado483 - 2011-05-14 15:15

gnif Wrote:@dado483 - Can you please post your log.

Here is my log:
http://pastebin.com/usNQXax7

Reading the log, i can see when i am in the main menu, XBMC open the correct audio device (hdmi:NVidia) and sounds works good.
When i play a movie, XBMC try to open a wrong audio device as below:

15:03:09 T:140300823357184 M:3671257088 ERROR: CAESinkALSA::Initialize - snd_pcm_open_lconf(-22) - hdmi:CARD=NVidia:AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x02
15:03:09 T:140300823357184 M:3671257088 ERROR: CAESinkOSS::Initialize - Failed to get supported formats, assuming AFMT_S16_NE
15:03:09 T:140300823357184 M:3671257088 INFO: CSoftAE::Initialize - NULL Initialized:
15:03:09 T:140300823357184 M:3671257088 INFO: Output Device : NULL
15:03:09 T:140300823357184 M:3671257088 INFO: Sample Rate : 48000
15:03:09 T:140300823357184 M:3671257088 INFO: Sample Format : AE_FMT_S16NE
15:03:09 T:140300823357184 M:3671257088 INFO: Channel Count : 2
15:03:09 T:140300823357184 M:3671257088 INFO: Channel Layout: FL,FR
15:03:09 T:140300823357184 M:3671257088 INFO: Frames : 960
15:03:09 T:140300823357184 M:3671257088 INFO: Frame Samples : 1920
15:03:09 T:140300823357184 M:3671257088 INFO: Frame Size : 4

hdmi:CARD=NVidia:AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x02 is not a valid device for me and audio is not working (movie is also played 3x faster).

On the linux console, i can read this message when i play a movie:

ALSA lib conf.c:4647: (snd_config_expand) Parse arguments error: Invalid argument
ALSA lib pcm.c:2212: (snd_pcm_open_noupdate) Unknown PCM hdmi:CARD=NVidia:AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x02

Hope this help.

Davide