Skip to content

Commit 0e50d67

Browse files
committed
DOC: Add a warning about buffer re-use in incoming_midi_events()
1 parent 1cbf5b0 commit 0e50d67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jack.py

+4
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,10 @@ def incoming_midi_events(self):
17781778
event : buffer
17791779
The actual MIDI event data.
17801780
1781+
.. warning:: The buffer is re-used (and therefore
1782+
overwritten) between iterations. If you want to keep the
1783+
data beyond the current iteration, please make a copy.
1784+
17811785
"""
17821786
event = self._event
17831787
buf = _lib.jack_port_get_buffer(self._ptr, self._client.blocksize)

0 commit comments

Comments
 (0)