summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2022-07-17 13:23:14 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2022-07-19 18:50:21 +0200
commit5d0265632285b63bd19df70ced5c9ac9de4ad62e (patch)
tree4e130a37edb99fdf2b9139a887afc03f508dfa1f
parentd622be93b6824ba7fbcf4bfd64e47697dccc7b7b (diff)
DOC: mention wait() in play()/rec()/playrec() docs
-rw-r--r--sounddevice.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/sounddevice.py b/sounddevice.py
index 862aaa0..f13e902 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -113,7 +113,8 @@ def play(data, samplerate=None, mapping=None, blocking=False, loop=False,
* Start the stream.
* If ``blocking=True`` was given, wait until playback is done.
- If not, return immediately.
+ If not, return immediately
+ (to start waiting at a later point, `wait()` can be used).
If you need more control (e.g. block-wise gapless playback, multiple
overlapping playbacks, ...), you should explicitly create an
@@ -195,7 +196,8 @@ def rec(frames=None, samplerate=None, channels=None, dtype=None,
* Start the stream.
* If ``blocking=True`` was given, wait until recording is done.
- If not, return immediately.
+ If not, return immediately
+ (to start waiting at a later point, `wait()` can be used).
If you need more control (e.g. block-wise gapless recording,
overlapping recordings, ...), you should explicitly create an
@@ -292,7 +294,8 @@ def playrec(data, samplerate=None, channels=None, dtype=None,
* Start the stream.
* If ``blocking=True`` was given, wait until playback/recording is
- done. If not, return immediately.
+ done. If not, return immediately
+ (to start waiting at a later point, `wait()` can be used).
If you need more control (e.g. block-wise gapless playback and
recording, realtime processing, ...),