Skip to content

Instantly share code, notes, and snippets.

@ix4
Last active August 6, 2018 04:53
Show Gist options
  • Save ix4/89cf985b168aeb1ccce67a69e8ff3429 to your computer and use it in GitHub Desktop.
Save ix4/89cf985b168aeb1ccce67a69e8ff3429 to your computer and use it in GitHub Desktop.

SIMPLE PROTOCOL PLAYER

App Play Store | Github | Kaytat's Blog Post

Determine which source to use

Run pactl list sources short
Look for “analog-stereo.monitor” and take note of the index number on the left. In my case, it’s 1.

0    alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor    module-alsa-card.c    s16le 2ch 44100Hz    SUSPENDED
1    alsa_output.pci-0000_00_1b.0.analog-stereo.monitor    module-alsa-card.c    s16le 2ch 44100Hz    SUSPENDED
2    alsa_input.pci-0000_00_1b.0.analog-stereo    module-alsa-card.c    s16le 2ch 44100Hz    SUSPENDED
Edit config files

sudo nano /etc/pulse/default.pa
Add the following line near the bottom, substituting your source index:
load-module module-simple-protocol-tcp source=1 record=true port=12345

Restart Pulse

pulseaudio -k && pulseaudio --start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment