07-30-2021, 05:17 PM
Hi here all
While mocking up an bluetooth (ESP32) transmitter/reciever for my moOde player, i need some way of toggling play&pause from within a Python script.
(The bluetooth remote uses CamillaDSP's volume control for volume)
Snip of cdsp .yml config ::
I found that mpc toggle can do the trick very easily, so thats good. But camillaDSP goes offline every time i pause the player causing the python script to crash.
Well maybe (i guess) i could let the when done systemctl script restart the Python, but i don't like it this way.
Soo quistion is: Is there a way to avoid CamillaDSP to go offline when pausing the player ?
Rgds; Jesper
I will btw. post additional info about my project later on in the process.
While mocking up an bluetooth (ESP32) transmitter/reciever for my moOde player, i need some way of toggling play&pause from within a Python script.
(The bluetooth remote uses CamillaDSP's volume control for volume)
Snip of cdsp .yml config ::
Code:
filters:
Gain_L:
parameters:
gain: -3
inverted: false
mute: false
type: Gain
Gain_R:
parameters:
gain: -3
inverted: false
mute: false
type: Gain
Vol_L:
parameters:
ramp_time: 200
type: Volume
Vol_R:
parameters:
ramp_time: 200
type: Volume
pipeline:
- channel: 0
names:
- Gain_L
- Vol_L
type: Filter
- channel: 1
names:
- Gain_R
- Vol_R
type: Filter
...
I found that mpc toggle can do the trick very easily, so thats good. But camillaDSP goes offline every time i pause the player causing the python script to crash.
Well maybe (i guess) i could let the when done systemctl script restart the Python, but i don't like it this way.
Soo quistion is: Is there a way to avoid CamillaDSP to go offline when pausing the player ?
Rgds; Jesper
I will btw. post additional info about my project later on in the process.