PulseAudio

Wiki.TerraBase.info
Revision as of 06:32, 15 August 2024 by Root (talk | contribs) (Created page with "=== Fun Facts and Observations === ==== Sink-Inputs ==== ===== Example 1; ===== System.pa Configuration (AKA "Circumstances");<syntaxhighlight lang="text"> load-module module-native-protocol-unix load-module module-alsa-sink device=surround51:CARD=ICUSBAUDIO7D,0 sink_name=alsa_output.0.surround.51 load-module module-alsa-source device=hw:0,0 source_name=alsa_input.0.analog-stereo load-module module-loopback source=alsa_input.0.analog-stereo sink=alsa_output.0.surround...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Fun Facts and Observations

Sink-Inputs

Example 1;

System.pa Configuration (AKA "Circumstances");

load-module module-native-protocol-unix

load-module module-alsa-sink device=surround51:CARD=ICUSBAUDIO7D,0 sink_name=alsa_output.0.surround.51
load-module module-alsa-source device=hw:0,0 source_name=alsa_input.0.analog-stereo
load-module module-loopback source=alsa_input.0.analog-stereo sink=alsa_output.0.surround.51 latency_msec=800

Command: pactl list sink-inputs short

Result: 0       1       -       module-loopback.c       s16le 2ch 47999Hz

Example 2;

System.pa Configuration (AKA "Circumstances");

load-module module-native-protocol-unix

load-module module-alsa-sink device=surround51:CARD=ICUSBAUDIO7D,0 sink_name=alsa_output.0.surround.51
load-module module-alsa-source device=hw:0,0 source_name=alsa_input.0.analog-stereo
load-module module-loopback source=alsa_input.0.analog-stereo sink=alsa_output.0.surround.51 latency_msec=800

Play a file using MPD / MPC or "PulseAudio Play": paplay --device=alsa_output.0.surround.51 BeeGees.wav

Command: pactl list sink-inputs short*

Results;

0       1       -       module-loopback.c       s16le 2ch 48000Hz
2       1       5       protocol-native.c       s16le 2ch 44100Hz

*Note(s): If using paplay, another SSH session must be used for the pactl command. If using MPC, once started play can be stopped and the MPD Daemon will maintain the existenc of the 'protocol-native.c' sink-inputs.