Compare commits
2 commits
0f1740005a
...
32b75696c2
Author | SHA1 | Date | |
---|---|---|---|
32b75696c2 | |||
5254769a9c |
5 changed files with 35 additions and 12 deletions
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
- name: rebuild librespot
|
- name: rebuild librespot
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: /root/.cargo/bin/cargo build --release --features pulseaudio-backend
|
cmd: /root/.cargo/bin/cargo build --release --features pulseaudio-backend,jackaudio-backend
|
||||||
args:
|
args:
|
||||||
chdir: /opt/librespot
|
chdir: /opt/librespot
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
name:
|
name:
|
||||||
- bitvis
|
- bitvis
|
||||||
- bitvis-http
|
- bitvis-http
|
||||||
|
- swh-plugins
|
||||||
|
|
||||||
- name: Create bitvis user
|
- name: Create bitvis user
|
||||||
user:
|
user:
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
---
|
---
|
||||||
|
- name: Install apt dependencies
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- libasound2-dev
|
||||||
|
- libjack-dev
|
||||||
|
- pkg-config
|
||||||
|
|
||||||
- name: Create librespot user
|
- name: Create librespot user
|
||||||
user:
|
user:
|
||||||
name: "{{ music_librespot_user }}"
|
name: "{{ music_librespot_user }}"
|
||||||
|
|
|
@ -7,10 +7,14 @@ After=network.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=2s
|
RestartSec=10s
|
||||||
ExecStart=/opt/librespot/target/release/librespot --name Trollibox --backend pulseaudio --volume-ctrl linear
|
ExecStart=/usr/bin/pw-jack -s 44100 /opt/librespot/target/release/librespot --name Trollibox --backend jackaudio
|
||||||
Environment="PULSE_SERVER={{ music_pulse_server }}"
|
ExecStartPost=/usr/bin/sleep 4
|
||||||
User={{ music_librespot_user }}
|
ExecStartPost=-/usr/bin/pw-link librespot:out_0 alsa_output.usb-ASUS_Xonar_U7_MKII-00.analog-stereo:playback_FL
|
||||||
|
ExecStartPost=-/usr/bin/pw-link librespot:out_1 alsa_output.usb-ASUS_Xonar_U7_MKII-00.analog-stereo:playback_FR
|
||||||
|
# User={{ music_librespot_user }}
|
||||||
|
User=root
|
||||||
|
Environment="XDG_RUNTIME_DIR=/run/user/{{ music_audio_user_id }}"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -9,17 +9,28 @@ context.modules = [
|
||||||
filter.graph = {
|
filter.graph = {
|
||||||
nodes = [
|
nodes = [
|
||||||
{
|
{
|
||||||
name = mix
|
name = normalize
|
||||||
type = builtin
|
type = ladspa
|
||||||
label = mixer
|
plugin = fast_lookahead_limiter_1913
|
||||||
|
label = fastLookaheadLimiter
|
||||||
control = {
|
control = {
|
||||||
"Gain 1" = 10
|
"Input gain (dB)" = 40
|
||||||
"Gain 2" = 10
|
"Limit (dB)" = 0
|
||||||
|
"Release time (s)" = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = mono
|
||||||
|
type = builtin
|
||||||
|
label = mixer
|
||||||
|
}
|
||||||
]
|
]
|
||||||
inputs = [ "mix:In 1" "mix:In 2" ]
|
links = [
|
||||||
outputs = [ "mix:Out" ]
|
{ output = "normalize:Output 1", input = "mono:In 1" }
|
||||||
|
{ output = "normalize:Output 2", input = "mono:In 2" }
|
||||||
|
]
|
||||||
|
inputs = [ "normalize:Input 1" "normalize:Input 2" ]
|
||||||
|
outputs = [ "mono:Out" ]
|
||||||
}
|
}
|
||||||
capture.props = {
|
capture.props = {
|
||||||
node.name = "mix_input.bitvis"
|
node.name = "mix_input.bitvis"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue