Recorded data is volatile, make copy

pull/14/head
Ewald de Wit 2022-09-14 20:45:25 +02:00
rodzic 14f2759913
commit 05e36d8a15
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -50,7 +50,7 @@ class Audio:
idx = idx2
if not playItem.remaining():
self.playQ.popleft()
self.recorded.emit_threadsafe(in_data)
self.recorded.emit_threadsafe(in_data.copy())
def play(self, sound: np.ndarray):
"""Add a sound to the play queue."""