feat: renamed audio system
This commit is contained in:
@@ -19,7 +19,7 @@ class PlayEntry(NamedTuple):
|
||||
stream: Stream
|
||||
|
||||
|
||||
class AudioThread:
|
||||
class AudioSystem:
|
||||
audio: Optional[PyAudio]
|
||||
scheduler: sched.scheduler
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user