Skip to content

Commit 1951d61

Browse files
committed
[remove] Remove sighup monitor and cdsostoevolume.sh command
1 parent e3020ef commit 1951d61

File tree

3 files changed

+0
-59
lines changed

3 files changed

+0
-59
lines changed

builddep.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ fi
3333
# Prep root to pack
3434
mkdir -p root/usr/local/bin
3535
cp mpd2cdspvolume.py root/usr/local/bin/mpd2cdspvolume
36-
cp cdspstorevolume.sh root/usr/local/bin/cdspstorevolume
3736
mkdir -p root/usr/lib/tmpfiles.d
3837
cp etc/mpd2cdspvolume.conf root/usr/lib/tmpfiles.d/
3938
mkdir -p root/etc
4039
cp etc/mpd2cdspvolume.config root/etc
4140

4241
chmod a+x root/usr/local/bin/mpd2cdspvolume
43-
chmod a+x root/usr/local/bin/cdspstorevolume
4442

4543
# build the package
4644
fpm -s dir -t deb -n $PKGNAME -v $PKGVERSION \

cdspstorevolume.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

mpd2cdspvolume.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -198,27 +198,6 @@ def update_cdsp_volume(self, volume_db: float):
198198
self.update_cdsp_statefile(volume_db)
199199
return False
200200

201-
# def store_volume(self):
202-
# try:
203-
# if self._cdsp.is_connected() is False:
204-
# self._cdsp.connect()
205-
206-
# volume_db = float(self._cdsp.volume.main())
207-
# mute = 1 if self._cdsp.mute.main() else 0
208-
# self.update_cdsp_statefile(volume_db, mute)
209-
210-
# except (ConnectionRefusedError, IOError) as e:
211-
# logging.warning('store volume: no cdsp')
212-
213-
def sig_hup(self, signum, frame):
214-
# not needed anymore cdsp save it's own statefile now
215-
#self.store_volume()
216-
# force disconnect to prevent a 'hanging' socket during close down of cdsp
217-
# if self._cdsp.is_connected():
218-
# self._cdsp.disconnect()
219-
logging.warning('sighup for storing current volume isn\'t needed anymore!')
220-
221-
222201
def update_cdsp_statefile(self, main_volume: float=-6.0, main_mute:bool = False):
223202
""" Update statefile from camilladsp. Used for CamillaDSP 2.x and higher."""
224203
logging.info('update volume state file : %.2f dB, mute: %d', main_volume ,main_mute)
@@ -329,7 +308,6 @@ def get_config(config_file: Path):
329308

330309
signal.signal(signal.SIGINT, monitor.exit_gracefully)
331310
signal.signal(signal.SIGTERM, monitor.exit_gracefully)
332-
signal.signal(signal.SIGHUP, cdsp.sig_hup)
333311

334312
monitor.run_monitor()
335313

0 commit comments

Comments
 (0)