You are not logged in.

#1 2011-11-15 02:55:11

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

defaults.pcm.dmix.rate In alsa.conf Causes Crashes

In another thread we narrowed it down that defaults.pcm.dmix.rate 48000 in alsa.conf causes XBMC to crash when it plays certain videos. If I comment out defaults.pcm.dmix.rate the videos play fine but I don't have any sound system wide. Any ideas on how to rectify this?

Offline

#2 2011-11-15 03:24:56

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

Are those "certain videos" encoded at 44.1khz?

Is it only XBMC that has a problem?

Offline

#3 2011-11-15 04:00:08

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

yes and yes.

Last edited by brando56894 (2011-11-15 06:06:49)

Offline

#4 2011-11-17 22:24:36

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

Can someone please help me with this? This is the second "one-shot" answer I've gotten with this issue. I'm willing to fix it myself, I just have absolutely no idea what to do.

Offline

#5 2011-11-17 22:53:12

defears
Member
Registered: 2010-07-26
Posts: 218

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

What happens if you just change it to 44100? Does it still play 48000 files then? Do you have libsamplerate installed? Did you install pulseaudio by accident?

Offline

#6 2011-11-17 22:58:51

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

If I change it to anything the crashes still happen, the only way they don't happen is if I comment that line out, but then I don't have any sound.  Nothing for pulseaudio is installed, although it does complain about not being able to access pulseaudio.

20:06:35 T:139776137090816 M:5579362304  NOTICE: Creating audio device with codec id: 86017, channels: 2, sample rate: 44100, no pass-through
20:06:35 T:139776137090816 M:5578346496   ERROR: PulseAudio: Failed to connect context
20:06:35 T:139776137090816 M:5578346496   ERROR: PulseAudio: Failed to create context
20:06:35 T:139776145483520 M:5576638464  NOTICE:  fps: 23.976025, pwidth: 720, pheight: 400, dwidth: 720, dheight: 400

libsamplerate is installed:

 [bran@ra ~]$ query libsamplerate
libsamplerate 0.1.8-1

Last edited by brando56894 (2011-11-17 23:07:30)

Offline

#7 2011-11-17 23:11:09

defears
Member
Registered: 2010-07-26
Posts: 218

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

What do you have under system>system>audio output device?

Offline

#8 2011-11-17 23:14:31

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

I'm running KDE, but I have my internal sound card configured: HDA Intel (ALC889 Analog)

Offline

#9 2011-11-17 23:18:43

defears
Member
Registered: 2010-07-26
Posts: 218

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

That was for within xmbc.

Offline

#10 2011-11-17 23:20:20

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

Ok, it just says default

Offline

#11 2011-11-17 23:31:40

defears
Member
Registered: 2010-07-26
Posts: 218

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

Try each one. Mine says Default.alsa. With capital letters. But I'm also using pulseaudio. I know nothing of KDE's setup.

Offline

#12 2011-11-18 00:39:06

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: defaults.pcm.dmix.rate In alsa.conf Causes Crashes

These are the available output devices: default, defaults, hdmi, custom, iec958

These are the ones that work but cause crashes: default, defaults

all the others produce "cannot find output device"

here is the relevant section from my guisettings.xml

    <audiooutput>
        <ac3passthrough>true</ac3passthrough>
        <audiodevice>default</audiodevice>
        <channellayout>0</channellayout>
        <customdevice></customdevice>
        <custompassthrough></custompassthrough>
        <dontnormalizelevels>true</dontnormalizelevels>
        <dtspassthrough>true</dtspassthrough>
        <mode>0</mode>
        <passthroughaac>false</passthroughaac>
        <passthroughdevice>iec958</passthroughdevice>
        <passthroughmp1>false</passthroughmp1>
        <passthroughmp2>false</passthroughmp2>
        <passthroughmp3>false</passthroughmp3>
    </audiooutput>

Offline

Board footer

Powered by FluxBB