mirror of
https://github.com/correl/turntable.git
synced 2024-11-23 11:09:56 +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))
|
"Sampler error (length={}, bytes={})".format(length, len(data))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class Player(Process):
|
class Player(Process):
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
pcm_in: "Queue[PCM]",
|
pcm_in: "Queue[PCM]",
|
||||||
device: str,
|
device: str,
|
||||||
sample_length: int = 30,
|
sample_length: int = 30,
|
||||||
framerate: int = 44100,
|
framerate: int = 44100,
|
||||||
|
|
|
@ -116,7 +116,9 @@ def main():
|
||||||
clock = pygame.time.Clock()
|
clock = pygame.time.Clock()
|
||||||
while True:
|
while True:
|
||||||
for event in pygame.event.get():
|
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()
|
app.shutdown()
|
||||||
pygame.quit()
|
pygame.quit()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue