Kodi Community Forum

Full Version: Music Crossfade does not work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am running XBMCbuntu 11.0 on an Intel Atom D525 and cannot get crossfade to work.
My audio settings:

Audio output: Optical/Coax
Speaker Configuration: 2.0

Audio output device: iec958 (ALSA)
Passthrough output device: iec958 (ALSA)

It used to work under XBMC Dharma on the same hardware, but don't remember the settings.

In the log there are some entries like this:

Code:
22:17:02 T:3016886032   ERROR: PulseAudio: Failed to connect context

So it looks like a PulseAudio issue? I found some older threads regarding this, but many of them are related to former XBMC versions.
As soon as I disable crossfading everything works fine.

Would be nice if you could pull me in the right direction Wink
Ok, in the meantime I tried to remove PulseAudio...

Code:
Package pulseaudio is not installed, so not removed

Here's the output of aplay -L in case it is of any relevance:

Code:
null
    Discard all samples (playback) or generate zero samples (capture)
default
both
multi
hdmi_formatted
hdmi_complete
front:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC887 Digital
    IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    Direct sample mixing device
dmix:CARD=Intel,DEV=1
    HDA Intel, ALC887 Digital
    Direct sample mixing device
dsnoop:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    Direct sample snooping device
dsnoop:CARD=Intel,DEV=1
    HDA Intel, ALC887 Digital
    Direct sample snooping device
hw:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    Direct hardware device without any conversions
hw:CARD=Intel,DEV=1
    HDA Intel, ALC887 Digital
    Direct hardware device without any conversions
plughw:CARD=Intel,DEV=0
    HDA Intel, ALC887 Analog
    Hardware device with all software conversions
plughw:CARD=Intel,DEV=1
    HDA Intel, ALC887 Digital
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions

Any help still appreciated. It would even help me if someone says that crossfade does not work under XBMCbuntu.
Just to chime in. The pulseaudio error, not that I use xbmcbuntu, should not be required at all. However if you want to remove pulseaudio you will need to look at:

Does crossfade work at all in xbmcbuntu at all?
Before you mess with your install and potentially hose it, consider backing up your installation so as to have a fallback.

Beware though xbmc requires/depends libsdl1.2debian and if you remove pulse, sdl goes as well because one depends on another. But to remove pulseaudio and whatever depends on it (unfortunately)
Code:
sudo apt-get purge remove libpulse0 libpulse-dev
Since there is no actual package named pulseaudio

There are several things you can do, like installing a newer xbmc build from xvba ppa, or compiling from source, or leaving it alone. Wink

*edit*

I can confirm that a current xbmc master 12.0-ALPHA7 Git:20121011-70205b0, crossfade works.


Thanks. Could you please let me know how you upgraded to that version?
Did you do it like described in the thread you linked to in your signature?
yes. but I have a full hdd backup of previous, so as to have a fall-back, just in case. I would not recommend it without. you will very likely need to remove your guisettings.xml inside your userdata folder, and may very well need to re scrape everything in your library. I had to because guisettings.xml was not compatible anymore (so many settings in xbmc changed. Also the databases version have always proved that older versions tend to no be compatible. Somethings cannot be avoided.

Proceed with care Wink
Ok, this will not work for XBMCbuntu, right?

To be honest I don't want to risk that upgrade to an alpha version because everything else is working flawlessly and I'm still hoping that there must be a way to solve this an easier way Wink
It should work in any ubuntu based, but its not tested against all versions. You also have the xvba ppa option. https://launchpad.net/~wsnipex/+archive/xbmc-xvba, whatever you decide you should be prepared for any eventualities.
Quote:This page does not exist, or you may not have permission to see it.

Anyway, that's like using a sledge-hammer to crack a nut to me. I would prefer some hints how to configure the audio settings, maybe install some packages etc. instead of re-compiling and/or use an alpha version.
XBMCBuntu should work, without installing anymore packages. Not that I would know. As for tips, I have none, except to say your XBMC version does not have audio engine or very likely does not. This makes a huge difference and it goes beyond installing some packages as it is integrated into newer xbmc.

that page does not exist, where did you get that error from?

Seems to me if you dont want alpha, compiled or from ppa, your limited to waiting until something is released stable?

Sorry I dont have a suitable solution for you.