From 70652e158dbd1f7dbccfc6fd90e80d38ac88f95c Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sun, 13 Mar 2016 12:16:03 +0100 Subject: DOC: Add flush=True to a few examples --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.rst') diff --git a/README.rst b/README.rst index e76b7b4..e81acc0 100644 --- a/README.rst +++ b/README.rst @@ -235,7 +235,7 @@ Callback "wire" with `sounddevice.Stream`: def callback(indata, outdata, frames, time, status): if status: - print(status) + print(status, flush=True) outdata[:] = indata with sd.Stream(channels=2, callback=callback): @@ -250,7 +250,7 @@ Same thing with `sounddevice.RawStream`: def callback(indata, outdata, frames, time, status): if status: - print(status) + print(status, flush=True) outdata[:] = indata with sd.RawStream(channels=2, dtype='int24', callback=callback): -- cgit v1.2.3