-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from tomodachi/roc-streaming
A role for the roc sink module for pulseaudio.
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
configuring the sender to stream to the roc-sink | ||
|
||
on your workstation (sender) | ||
~/.config/pipewire/pipewire.conf.d/pipewire.conf | ||
|
||
context.modules = [ | ||
{ name = libpipewire-module-roc-sink | ||
args = { | ||
fec.code = rs8m | ||
remote.ip = ip-of-device-with-roc-sink | ||
remote.source.port = 10001 | ||
remote.repair.port = 10002 | ||
sink.name = "Roc Sink livingroom" | ||
sink.props = { | ||
node.name = "roc-sink-livingroom" | ||
} | ||
} | ||
} | ||
] | ||
|
||
and restart pipewire and you should see a new output ready to receive audio |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# Todo: don't hard code pipewire version the modules | ||
# are compiled for ARM64 debian oldstable (deb 11) | ||
|
||
- name: Enable auto login on tty for media user (required for pulseaudio to work) | ||
ansible.builtin.include_role: | ||
name: autottylogin | ||
|
||
- name: Copy pipewire ROC modules | ||
ansible.builtin.copy: | ||
src: files/{{ item }} | ||
dest: /usr/lib/pulse-14.2/modules/ | ||
owner: root | ||
group: root | ||
mode: '0644' | ||
loop: | ||
- module-roc-sink-input.so | ||
- module-roc-sink.so | ||
|
||
- name: Install pulseaudio | ||
ansible.builtin.apt: | ||
name: pulseaudio | ||
state: present | ||
install_recommends: false | ||
|
||
- name: Load pipewire ROC module | ||
ansible.builtin.lineinfile: | ||
path: /etc/pulse/default.pa | ||
line: "load-module module-roc-sink-input sink_input_properties=media.name=roc-receiver" | ||
state: present | ||
owner: root | ||
group: root | ||
mode: '0644' | ||
|
||
- name: Load play ROC audio on HDMI | ||
ansible.builtin.lineinfile: | ||
path: /etc/pulse/default.pa | ||
line: "move-sink-input 0 1" | ||
state: present | ||
owner: root | ||
group: root | ||
mode: '0644' |