diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2016-03-13 12:16:03 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2016-03-13 12:16:03 +0100 |
| commit | 70652e158dbd1f7dbccfc6fd90e80d38ac88f95c (patch) | |
| tree | e75398157fd480df15264321a21b291bb9b5daf3 /README.rst | |
| parent | 814581a40808ff00759b53be69cdecacc0269d28 (diff) | |
DOC: Add flush=True to a few examples
Diffstat (limited to 'README.rst')
| -rw-r--r-- | README.rst | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |
