Difference between revisions of "PulseAudio"

Wiki.TerraBase.info
Jump to navigation Jump to search
(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...")
 
m
Line 1: Line 1:
=== Fun Facts and Observations ===
=== General Information ===


==== Sink-Inputs ====
==== Sinks (Outputs), Sources (Inputs), Input-Sinks ("Connectors") ====
Sinks: Equivalent to Speaker Out, Line Out, Head Phone Jacks, etc.


===== Example 1; =====
Sources: Equivalent to Microphone, Line In, etc.
 
Input-Sinks: Equivalent to wires connecting Sources to Sinks internally via Software
 
===Fun Facts and Observations===
 
====Sink-Inputs====
 
=====Example 1;=====
System.pa Configuration (AKA "Circumstances");<syntaxhighlight lang="text">
System.pa Configuration (AKA "Circumstances");<syntaxhighlight lang="text">
load-module module-native-protocol-unix
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-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
</syntaxhighlight>Commands: <code>pactl list sinks short</code> , <code>pactl list sources short</code> , and <code>pactl list sink-inputs short</code><syntaxhighlight lang="text">
load-module module-loopback source=alsa_input.0.analog-stereo sink=alsa_output.0.surround.51 latency_msec=800
pactl list sinks short
1      alsa_output.0.surround.71      module-alsa-sink.c      s16le 8ch 48000Hz      IDLE


</syntaxhighlight>Command: <code>pactl list sink-inputs short</code>
pactl list sources short
1      alsa_output.0.surround.71.monitor      module-alsa-sink.c      s16le 8ch 48000Hz      IDLE


Result: <code>0       1       -       module-loopback.c       s16le 2ch 47999Hz</code>
pactl list sink-inputs short
...just for clarity, the output from the above command was blank / nothing.
</syntaxhighlight>


===== Example 2; =====
=====Example 2;=====
System.pa Configuration (AKA "Circumstances");<syntaxhighlight lang="text">
System.pa Configuration (AKA "Circumstances");<syntaxhighlight lang="text">
load-module module-native-protocol-unix
load-module module-native-protocol-unix
Line 25: Line 38:
</syntaxhighlight>Play a file using MPD / MPC or "PulseAudio Play": <code>paplay --device=alsa_output.0.surround.51 BeeGees.wav</code>
</syntaxhighlight>Play a file using MPD / MPC or "PulseAudio Play": <code>paplay --device=alsa_output.0.surround.51 BeeGees.wav</code>


Command: <code>pactl list sink-inputs short</code>*  
Commands: <code>pactl list sinks short</code> , <code>pactl list sources short</code> , and <code>pactl list sink-inputs short</code> <syntaxhighlight lang="text">
pactl list sinks short
1      alsa_output.0.surround.71      module-alsa-sink.c      s16le 8ch 48000Hz      IDLE
 
pactl list sources short
1      alsa_output.0.surround.71.monitor      module-alsa-sink.c      s16le 8ch 48000Hz      IDLE
 
pactl list sink-inputs short
4      1      10      protocol-native.c      s24-32le 2ch 44100Hz
</syntaxhighlight>*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. 


Results;<syntaxhighlight lang="text">
<syntaxhighlight lang="text">
0      1      -      module-loopback.c      s16le 2ch 48000Hz
0      1      -      module-loopback.c      s16le 2ch 48000Hz
2      1      5      protocol-native.c      s16le 2ch 44100Hz
2      1      5      protocol-native.c      s16le 2ch 44100Hz
</syntaxhighlight>*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.
</syntaxhighlight><br />
<br />

Revision as of 12:02, 15 August 2024

General Information

Sinks (Outputs), Sources (Inputs), Input-Sinks ("Connectors")

Sinks: Equivalent to Speaker Out, Line Out, Head Phone Jacks, etc.

Sources: Equivalent to Microphone, Line In, etc.

Input-Sinks: Equivalent to wires connecting Sources to Sinks internally via Software

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

Commands: pactl list sinks short , pactl list sources short , and pactl list sink-inputs short

pactl list sinks short
1       alsa_output.0.surround.71       module-alsa-sink.c      s16le 8ch 48000Hz       IDLE

pactl list sources short
1       alsa_output.0.surround.71.monitor       module-alsa-sink.c      s16le 8ch 48000Hz       IDLE

pactl list sink-inputs short
...just for clarity, the output from the above command was blank / nothing.
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 Commands: pactl list sinks short , pactl list sources short , and pactl list sink-inputs short

pactl list sinks short
1       alsa_output.0.surround.71       module-alsa-sink.c      s16le 8ch 48000Hz       IDLE

pactl list sources short
1       alsa_output.0.surround.71.monitor       module-alsa-sink.c      s16le 8ch 48000Hz       IDLE

pactl list sink-inputs short
4       1       10      protocol-native.c       s24-32le 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.

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