Kodi Community Forum
No sound and too slow playback on 22kHz Flash files - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: No sound and too slow playback on 22kHz Flash files (/showthread.php?tid=88153)



[LINUX]No sound on 22kHz Flash files through hdmi - martdj - 2010-12-20

I've been upgrading my HTPC lately and this is the only thing that doesn't work. I'm using XBMC 10.0 on a Lucid minimal installation. I'm using a mainboard with a nvidia 9400 chipset. nvidia drivers: 260.19.26

Multichannel audio is working fine. Everything is streamed through HDMI. My settings in the System-Audio screen are "hdmi" for all 3 items.
Whenever I try to play any flash file (like a youtube movie) with 22kHz sound, the video is very slow (could be half speed but feels slower) and I have no sound at all. If I change the settings of system-audio to hdmi-default-hdmi, the video playback is normal speed but I only have navigation sounds left in XBMC.
My .asoundrc file for the xbmc user looks like this:
Code:
pcm.dmixer {
   type dmix
   ipc_key 1024
   ipc_key_add_uid false
   ipc_perm 0660
   slave {
      pcm "hw:0,3"
      rate 48000
      channels 2
      format S32_LE
      period_time 0
      period_size 1024
      buffer_time 0
      buffer_size 4096
   }
}

pcm.!default {
   type plug
   slave.pcm "dmixer"
}

I also tried these settings, but that didn't make a difference
.asoundrc
Code:
pcm.both {
        type route
        slave {
                pcm multi
                channels 6
        }
        ttable.0.0 1.0
        ttable.1.1 1.0
        ttable.0.2 1.0
        ttable.1.3 1.0
        ttable.0.4 1.0
        ttable.1.5 1.0
}

pcm.multi {
        type multi
        slaves.a {
                pcm "hdmi_hw"
                channels 2
        }
        slaves.b {
                pcm "digital_hw"
                channels 2
        }
        slaves.c {
                pcm "analog_hw"
                channels 2
        }
        bindings.0.slave a
        bindings.0.channel 0
        bindings.1.slave a
        bindings.1.channel 1
        bindings.2.slave b
        bindings.2.channel 0
        bindings.3.slave b
        bindings.3.channel 1
        bindings.4.slave c
        bindings.4.channel 0
        bindings.5.slave c
        bindings.5.channel 1
}

pcm.hdmi_hw {
        type hw
        card 0
        device 3
        channels 2
}

pcm.hdmi_formatted {
        type plug
        slave {
                pcm hdmi_hw
                rate 48000
                channels 2
        }
}

pcm.hdmi_complete {
        type softvol
        slave.pcm hdmi_formatted
        control.name hdmi_volume
        control.card 0
}

pcm.digital_hw {
        type hw
        card 0
        device 1
        channels 2
}

pcm.analog_hw {
        type hw
        card 0
        device 0
        channels 2
}

Does anyone have any idea how to fix this issue? I guess it has to do with my alsa settings somwhere, but I wouldn't know what to change how


- martdj - 2011-01-04

ok, going to bump this one. I found out that the slow playback is caused by a bug in Dharma. Setting my audio to 2.0 fixed that problem, but still no sound. However, if I select Digital and IEC958 as settings to use my spdif cable instead of the hdmi cable for the sound, I do have sound in those files. This regretfully breaks my multichannel music, so this is not a real solution. Does anyone recognize this and know how to fix it?