diff --git a/turntable/audio.py b/turntable/audio.py index 9b0e401..e55431d 100644 --- a/turntable/audio.py +++ b/turntable/audio.py @@ -64,10 +64,11 @@ class Listener(Process): "Sampler error (length={}, bytes={})".format(length, len(data)) ) + class Player(Process): def __init__( self, - pcm_in: "Queue[PCM]", + pcm_in: "Queue[PCM]", device: str, sample_length: int = 30, framerate: int = 44100, diff --git a/turntable/gui.py b/turntable/gui.py index c028fe8..e85feed 100644 --- a/turntable/gui.py +++ b/turntable/gui.py @@ -116,7 +116,9 @@ def main(): clock = pygame.time.Clock() while True: for event in pygame.event.get(): - if event.type == QUIT or (event.type == KEYDOWN and event.key == K_ESCAPE): + if event.type == QUIT or ( + event.type == KEYDOWN and event.key == K_ESCAPE + ): app.shutdown() pygame.quit() return