kalittle wrote: 
> Greetings everyone - just built piCorePlayer 3.1 on pi 3 board as my
> Duet reciever died a horrible death.  On my Duet, I could send the
> output to both analog and optical outputs - I sent one to my receiver
> and one to my whole house sound system.  I would like to send the output
> from piCorePlayer to both analog and HDMI, which would accomplish the
> same goal.  
> 

A more elegant solution is to configure ALSA to send the sound to two
devices, then there's no need for multiple squeezelite instances.

edit /etc/asound.conf (note: adjust card/device to match your setup):

Code:
--------------------
    
  pcm.!default {
  type plug
  slave {
  pcm "both"
  }
  }
  pcm.both {
  type route
  slave {
  pcm multi
  channels 4
  }
  
  ttable.0.0 1.0
  ttable.1.1 1.0
  ttable.0.2 1.0
  ttable.1.3 1.0
  }
  pcm.multi {
  type multi
  slaves.a {
  pcm "analog"
  channels 2
  }
  slaves.b {
  pcm "hdmi"
  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
  }
  pcm.hdmi {
  type hw
  card 0
  device 0
  channels 2
  }
  pcm.analog {
  type hw
  card 0
  device 3
  channels 2
  }
  
--------------------

and use the "both" device

Note: make sure  /etc/asound.conf survives a reboot.



[ extGUI4LMS - an alternative web interface: 'forum'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
/ 'homepage' (https://www.nexus0.net/pub/sw/extgui4lms/) | 'music
visualizer'
(http://forums.slimdevices.com/showthread.php?103073-Announce-music-visualizer-for-squeezelite)
for squeezelite | 'Howto'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS):
build a self-contained LMS ]
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=106885

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to