Cannot get multiple audio devices working. Please help!!!
#1
I followed the following guide: http://forum.xbmc.org/showthread.php?tid=96138

Here is the results of $ aplay -l:
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
card 1: Generic_1 [HD-Audio Generic], device 0: ALC269VB Analog [ALC269VB Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

From this output I have discovered that my following devices are:
HDMI -> hw:0,3
Analog -> hw:1,0

I need to output sound to both devices. In the settings within XBMC there is only the option of HDMI or Analog under "Audio Device Output".

Here is my .asoundrc file:
Code:
$ cat .asoundrc
#----
# .asoundrc file designed to expand 2 channels through device 'clone_output'
# to output 2 channels to multiple devices
#
# caveats : no mixed output (no crossfading, no multiple applications) also
# sync will drift between the devices (rarely do i see mine drift though)
#
# designed around a nvidia ION1 zotac board. You may need to change
# device names.
# Use aplay -l to find device numbers
#
# questions contact Loto_Bak on forums.xbmc.org
#----

pcm.!default {
    type plug
    slave.pcm "dmixed_hdmi"
    }
#-----
# Single channel dmixed. Crossfade works
#-----
pcm.hdmiout {
    type plug
    slave.pcm "dmixed_hdmi"
}

pcm.dmixed_hdmi {
    type dmix
    ipc_key 2024
    slave {
        pcm "hw:0,3" # hdmi
        }
}
#-----
# multiple output portion begin (3 devices) dmix not supported.
#-----

pcm.clone_output {
    type plug
    slave.pcm "6channel_expander"
        }
        
pcm.multi_pcm_device {
        type multi;
        slaves.a.pcm "hw:0,3"; # hdmi
        slaves.a.channels 2;
        slaves.b.pcm "hw:1,0"; # analog
        slaves.b.channels 2;
    slaves.c.pcm "hw:0,1"; # spdif
    slaves.c.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;
}
ctl.multi_pcm_device {
        type hw;
        card 0;
}
pcm.6channel_expander {
        type route;
        slave.pcm "multi_pcm_device";
        slave.channels 6;
        ttable.0.0 1;
        ttable.1.1 1;
        ttable.0.2 1;
        ttable.1.3 1;
        ttable.0.4 1;
        ttable.1.5 1;
}
ctl.6channel_expander {
        type hw;
        card 0;
}

However, when I reboot the box the sound is only coming out of one of the devices still, and I can only select one device at a time.

I was able to get this to work using pulseaudio's $ pacmd load-module module-combine within the xbmcbuntu side of the box.
Reply
#2
Current versions of xbmc no longer output sound over two devices. It may come in future releases as AudioEngine matures, but no timetable available at this time.
Reply
#3
That is contrary to the other threads showing that people that have frodo and multiple audio sources. I just don't know how to make chanes to the .asoundrc file.
Reply

Logout Mark Read Team Forum Stats Members Help
Cannot get multiple audio devices working. Please help!!!0