We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d95ed5 commit 5063a35Copy full SHA for 5063a35
sounddevice.py
@@ -2501,8 +2501,6 @@ class _CallbackContext:
2501
"""Helper class for reuse in play()/rec()/playrec() callbacks."""
2502
2503
blocksize = None
2504
- data = None
2505
- out = None
2506
frame = 0
2507
frames: int
2508
input_channels = output_channels = None
@@ -2635,8 +2633,8 @@ def callback_exit(self):
2635
2633
def finished_callback(self):
2636
2634
self.event.set()
2637
# Drop temporary audio buffers to free memory
2638
- self.data = None
2639
- self.out = None
+ del self.data
+ del self.out
2640
# Drop CFFI objects to avoid reference cycles
2641
self.stream._callback = None
2642
self.stream._finished_callback = None
0 commit comments