Howto mix line pulseaudio

From Vidalinux Wiki
Jump to navigation Jump to search

pulseaudio

list audio sources:

pactl list sources short

output:

53	    alsa_output.pci-0000_04_00.0.hdmi-stereo.monitor	                PipeWire	s32le 2ch 48000Hz	RUNNING
54 	alsa_input.usb-R__DE_Wireless_GO_II_RX_215C1214-01.analog-stereo	PipeWire	s24le 2ch 48000Hz	RUNNING
65 	alsa_input.usb-ezcap_ezcap_LIVE_GAMER_RAW_00000001-02.iec958-stereo	PipeWire	s16le 2ch 48000Hz	RUNNING

we want to sink audio from hdmi-stereo.monitor and ezcap:

pactl load-module module-null-sink sink_name=both sink_properties=device.description=ezcap-and-speakers
pactl load-module module-loopback source=alsa_output.pci-0000_04_00.0.hdmi-stereo.monitor sink=both
pactl load-module module-loopback source=alsa_input.usb-ezcap_ezcap_LIVE_GAMER_RAW_00000001-02.iec958-stereo sink=both
pactl load-module module-loopback sink=both

list sink inputs:

pactl list sink-inputs short

output:

72  65  - PipeWire float32le 2ch 48000Hz
86  65  - PipeWire float32le 2ch 48000Hz
100 65 - PipeWire float32le 2ch 48000Hz

change the