mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2025-04-04 12:43:52 +01:00
Compare commits
3 Commits
b33926f304
...
09cb62ecfa
Author | SHA1 | Date | |
---|---|---|---|
09cb62ecfa | |||
cddd04974b | |||
50e95d6b8d |
@ -1,7 +1,5 @@
|
|||||||
import json
|
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
from logging import config
|
|
||||||
|
|
||||||
import voicemeeterlib
|
import voicemeeterlib
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "voicemeeter-api"
|
name = "voicemeeter-api"
|
||||||
version = "2.4.2"
|
version = "2.4.3"
|
||||||
description = "A Python wrapper for the Voiceemeter API"
|
description = "A Python wrapper for the Voiceemeter API"
|
||||||
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
authors = ["onyx-and-iris <code@onyxandiris.online>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
@ -331,8 +331,9 @@ class Remote(CBindings):
|
|||||||
self.logger.info(f"Profile '{name}' applied!")
|
self.logger.info(f"Profile '{name}' applied!")
|
||||||
|
|
||||||
def end_thread(self):
|
def end_thread(self):
|
||||||
self.logger.debug("events thread shutdown started")
|
if self.running:
|
||||||
self.running = False
|
self.logger.debug("events thread shutdown started")
|
||||||
|
self.running = False
|
||||||
|
|
||||||
def logout(self) -> None:
|
def logout(self) -> None:
|
||||||
"""Logout of the API"""
|
"""Logout of the API"""
|
||||||
|
@ -56,12 +56,7 @@ class Updater(threading.Thread):
|
|||||||
|
|
||||||
Generate _strip_comp, _bus_comp and update level cache if ldirty.
|
Generate _strip_comp, _bus_comp and update level cache if ldirty.
|
||||||
"""
|
"""
|
||||||
while True:
|
while event := self.queue.get():
|
||||||
event = self.queue.get()
|
|
||||||
if event is None:
|
|
||||||
self.logger.debug(f"terminating {self.name} thread")
|
|
||||||
break
|
|
||||||
|
|
||||||
if event == "pdirty" and self._remote.pdirty:
|
if event == "pdirty" and self._remote.pdirty:
|
||||||
self._remote.subject.notify(event)
|
self._remote.subject.notify(event)
|
||||||
elif event == "mdirty" and self._remote.mdirty:
|
elif event == "mdirty" and self._remote.mdirty:
|
||||||
@ -73,3 +68,4 @@ class Updater(threading.Thread):
|
|||||||
self._remote.cache["strip_level"] = self._remote._strip_buf
|
self._remote.cache["strip_level"] = self._remote._strip_buf
|
||||||
self._remote.cache["bus_level"] = self._remote._bus_buf
|
self._remote.cache["bus_level"] = self._remote._bus_buf
|
||||||
self._remote.subject.notify(event)
|
self._remote.subject.notify(event)
|
||||||
|
self.logger.debug(f"terminating {self.name} thread")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user