isine example: remove questionable setting of period size

there is no need to be pedantic about the period size, especially with
a blocking device. what's more, attempting to set it on an already
playing device would error out, and it would be rather counter-
productive to temporarily stop it.
This commit is contained in:
Oswald Buddenhagen
2024-02-01 20:59:58 +01:00
parent 8fb33ddd49
commit 6f52de9da0

View File

@@ -79,7 +79,6 @@ class SinePlayer(Thread):
while True:
try:
buffer = self.queue.get(False)
self.device.setperiodsize(int(len(buffer) / framesize))
self.device.write(buffer)
except Empty:
if buffer: