summaryrefslogtreecommitdiff
path: root/tascam_fw_console/console.py
diff options
context:
space:
mode:
Diffstat (limited to 'tascam_fw_console/console.py')
-rw-r--r--tascam_fw_console/console.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tascam_fw_console/console.py b/tascam_fw_console/console.py
index 758888d..6f5dcc8 100644
--- a/tascam_fw_console/console.py
+++ b/tascam_fw_console/console.py
@@ -94,15 +94,23 @@ class RunningStatusThread():
time.sleep(self.interval)
+ print('Server thread shutdown.')
+
+ def stop_thread(self):
+ self.pill2kill.set()
+ self.thread.join()
+
class Console():
- def __init__(self, card_id=None, guid=None):
+ def __init__(self, card_id=None, guid=None, device=None):
fullpath = None
if guid:
fullpath = self._seek_snd_unit_from_guid(card_id)
elif card_id:
fullpath = '/dev/snd/hwC{0}D0'.format(card_id)
+ elif device:
+ fullpath = device
else:
try:
units = list_units()