mirror of
https://github.com/correl/turntable.git
synced 2024-12-27 11:09:53 +00:00
Fix formatting
This commit is contained in:
parent
4125544c97
commit
329270bd7d
2 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue