I can tell my programs to output to either HDMI or the headphone jack just fine, but is there a way to create a virtual device in asound.conf that outputs to both simultaneously?
This config comes very close to working but it creates a sort of pulsing noise on the headphone jack.
pcm.internal {
type hw
card 1
device 0
}
pcm.hdmi_hw {
type hw
card 0
device 7
}
pcm.hdmi_complete {
type softvol
slave.pcm hdmi_hw
control.name hdmi_volume
control.card 1
}
pcm.sirmix {
type plug
slave.pcm {
type multi
slaves {
a { channels 2 pcm "internal" }
b { channels 2 pcm "hdmi_complete" }
}
bindings {
0 { slave a channel 0 }
1 { slave a channel 1 }
2 { slave b channel 0 }
3 { slave b channel 1 }
}
}
ttable [
[ 1 0 1 0 ]
[ 0 1 0 1 ]
]
}
gst-launch-1.0 audiotestsrc ! audioconvert ! alsasink device="sirmix"