feat: renamed audio system

This commit is contained in:
2020-10-28 22:59:17 +01:00
parent de9e54c84b
commit 62fb8d35bc
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ class PlayEntry(NamedTuple):
stream: Stream
class AudioThread:
class AudioSystem:
audio: Optional[PyAudio]
scheduler: sched.scheduler

View File

@@ -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')