From 62fb8d35bcdf8209241aa1fecb261342f0f14644 Mon Sep 17 00:00:00 2001 From: Rick Rongen Date: Wed, 28 Oct 2020 22:59:17 +0100 Subject: [PATCH] feat: renamed audio system --- control/audio.py | 2 +- tickworker.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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')