diff --git a/control/audio.py b/control/audio.py index 52764dd..a3d09db 100644 --- a/control/audio.py +++ b/control/audio.py @@ -19,7 +19,7 @@ class PlayEntry(NamedTuple): stream: Stream -class AudioThread: +class AudioSystem: audio: Optional[PyAudio] scheduler: sched.scheduler diff --git a/tickworker.py b/tickworker.py index 62befb9..f53b6df 100644 --- a/tickworker.py +++ b/tickworker.py @@ -6,7 +6,7 @@ import json from redis import Redis from control.walle import WallE -from control.audio import AudioThread +from control.audio import AudioSystem INTERVAL_TICK = 0.025 # 40/s @@ -53,7 +53,7 @@ scheduler = sched.scheduler() walle = WallE() walle.setup() -audio = AudioThread(scheduler) +audio = AudioSystem(scheduler) audio.queue_sound('/home/rick/Downloads/Wall-E Sounds/wav/Startup1.wav')