XBMC Community Forum
[Linux] AudioEngine testers - Linux only - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: [Linux] AudioEngine testers - Linux only (/showthread.php?tid=128298)



RE: AudioEngine testers - Linux only - DDDamian - 2012-05-31 20:51

(2012-05-31 18:50)Aenima99x Wrote:  
(2012-05-27 06:21)Aenima99x Wrote:  
(2012-05-27 01:01)DDDamian Wrote:  I tried the sample file and it plays okay here - some glitches in the file encoding itself, visible in VLC too, but otherwise watchable. Turns out I did have a mono file here too, and it plays fine. I confirmed that AE is correctly upmixing the mono to stereo correctly.

I had a look thru your previous log, where you played an Abbott & Costello flick - one thing I noted was it was upconverting or transcoding to AC3. As a test, can you disable "Receiver supports AC3" in the Audio Output settings of XBMC and try again? Just want to see if that trancoding to AC3 is an issue.

Gave that a shot and it fixed the issue....

Not trying to bug you, just wanted to see if you had a chance to look at this. Thanks!

Patience - this is rather obscure (transcoding mono to AC3) - I have made a note on the to-do list.


RE: AudioEngine testers - Linux only - negge - 2012-05-31 23:14

(2012-05-31 17:07)d_hero Wrote:  yeah that is what i have set. ill try and post a log if thats ok?
ok heres the log:

http://pastebin.com/3SWSZwZL

its around line 940 that i start to play the file

I've had similar issues from time to time (I think I have that same Dire Straits SACD rip, unless you ripped it yourself). It's usually solved by closing XBMC, letting it stay closed for a couple of seconds then restarting it. Sometimes playing some other format that you know works (like MP3), then playing a FLAC file makes the audio work. Lately though I haven't had any of these issues (I recompile quite often).

(2012-05-31 16:31)Fumo Wrote:  Hi, just wondering when AE is inplemented in stable release-for linux mint(now running Eden). I'm a noob and don't know much about compiling my own xbmc ;-)

This really isn't the place to ask that. If you read the news page you'll see that AE will be included in the next stable release (ETA unknown I suppose). After that it's completely up to the Linux Mint maintainers to provide a package for it. Have a look at the wiki or the forum (I think there's a sticky for it) if you want to learn how to compile XBMC yourself. It really isn't very complicated at all.


RE: AudioEngine testers - Linux only - drivesoslow - 2012-06-01 15:50

(2012-05-31 09:47)gastar Wrote:  I had the a problem with ATI fglrx (catalyst 12.4) not providing the correct ELD data.
Instead of skipping the whole device I changed the code to continue and now there is SOUND again Laugh

Added the bug ticket + patch http://trac.xbmc.org/ticket/13075

Not sure if ALSA can handle this stuff always but for now better than no sound at all.

This is the same issue I am having. To work around it I compiled with PulseAudio enabled. I like your fix better since I hate PulseAudio.


RE: AudioEngine testers - Linux only - drivesoslow - 2012-06-01 16:44

(2012-06-01 15:50)drivesoslow Wrote:  
(2012-05-31 09:47)gastar Wrote:  I had the a problem with ATI fglrx (catalyst 12.4) not providing the correct ELD data.
Instead of skipping the whole device I changed the code to continue and now there is SOUND again Laugh

Added the bug ticket + patch http://trac.xbmc.org/ticket/13075

Not sure if ALSA can handle this stuff always but for now better than no sound at all.

This is the same issue I am having. To work around it I compiled with PulseAudio enabled. I like your fix better since I hate PulseAudio.

Still having a weird issue with my hdmi not being detected. I know my ELD data is invalid but XBMC is logging a different error:

Code:
07:15:25 T:3036981568    INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
07:15:25 T:3036981568    INFO: CAESinkALSA::Initialize - Attempting to open device
07:15:25 T:3036981568   ERROR: CAESinkALSA::Initialize - snd_pcm_open_lconf(-2) -
07:15:25 T:3036981568   ERROR: CAESinkOSS::Initialize - Failed to get supported formats, assuming

Full debug: http://pastebin.com/0gAAkFKq

I think it might be caused by this issue: https://github.com/xbmc/xbmc/pull/987

Code:
amixer contents -c Generic
numid=1,iface=CARD,name='HDMI/DP,pcm=3 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=7,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
  : values=219,173
  | dBscale-min=-51.00dB,step=0.20dB,mute=0
numid=2,iface=MIXER,name='IEC958 Playback Con Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=3,iface=MIXER,name='IEC958 Playback Pro Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=4,iface=MIXER,name='IEC958 Playback Default'
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x82 AES2=0x00 AES3=0x02]
numid=5,iface=MIXER,name='IEC958 Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=6,iface=PCM,name='ELD',device=3
  ; type=BYTES,access=r-------,values=0
  : values=

Code:
aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
    Playback/recording through the PulseAudio sound server
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
dmix:CARD=Generic,DEV=3
    HD-Audio Generic, HDMI 0
    Direct sample mixing device
dsnoop:CARD=Generic,DEV=3
    HD-Audio Generic, HDMI 0
    Direct sample snooping device
hw:CARD=Generic,DEV=3
    HD-Audio Generic, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=Generic,DEV=3
    HD-Audio Generic, HDMI 0
    Hardware device with all software conversions

Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



RE: AudioEngine testers - Linux only - DDDamian - 2012-06-02 04:03

@drivesoslow - yes, that pull request is aimed at some of the issues you're having. I expect it to be merged before June 10th. It's just waiting for review and the thumbs-up.


RE: AudioEngine testers - Linux only - __phil - 2012-06-02 11:04

(2012-05-26 22:05)OkvOkv Wrote:  
(2012-05-25 22:57)tseller Wrote:  ...

But... When i try to play a m2ts-File with TrueHD or DTS-HD audio, i only get noise on all speakers. The AVR shows that he is playing 7.1 PCM. Normal DTS files are working fine, AC3 too. If i disable DTS-HD support, the core DTS stream plays also fine.
...

Yes, this is exactly the same problem I have.
I notice you also have the Intel i3.

I suspect it is caused by the Intel alsa-driver.
It is not the hardware, as everything works on Win7.

I have installed a set-up to do full debug and development on the xbmc source, for the purpose of solving this issue, but I have not got started on this yet, I will also use very long time because I do not know the xbmc source.
In the meantime, hopefully somebody will fix it or find a workaround.

Same problem here (ASRock H67M-ITX/HT + Intel Core i3-2120).
Everything works great except DTS-HD and Dolby TrueHD.

Has anybody manged to get hd bitstream with an i3? Does the Intel linux driver even support hd bitstreaming?


RE: AudioEngine testers - Linux only - drivesoslow - 2012-06-02 16:42

(2012-06-02 04:03)DDDamian Wrote:  @drivesoslow - yes, that pull request is aimed at some of the issues you're having. I expect it to be merged before June 10th. It's just waiting for review and the thumbs-up.

Awesome. I'll stick with enabling pulse audio until then. I will update my progress after I see the merge. Thanks for the ETA.


RE: AudioEngine testers - Linux only - rdoac - 2012-06-02 17:37

Hmmm can't seem to get mythbox to do audio with an ATSC source (5.1 DD Sound). Works in Eden. Log here: http://pastebin.com/vbpQ8LZE


RE: AudioEngine testers - Linux only - rodercot - 2012-06-02 20:33

I built last evening from odenkamps fork. I am just wondering if I should get rid of my sound.conf file in modprobe.d now or keep it or does it matter and should I remove my userdata and rebuild from scratch to avoid any issues. I am not really seeing any other than audio dropouts here and ther with DTS-HD and Library thumbs are taking forever to populate not an ae issue.

Thanks,

D.


RE: AudioEngine testers - Linux only - SofaKng - 2012-06-03 03:10

I'm not sure where to post this, but I just compiled the git version of XBMC and when I run it I immediately get a segmentation fault.

Can somebody take a look?

http://paste.ubuntu.com/1020572/

One error in the log I see is:
Code:
ERROR: CAESinkOSS::EnumerateDevicesEx - Failed to open mixer: /dev/mixer

...but I don't think Ubuntu 12.04 has the legacy /dev/mixer device?