diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2016-05-12 09:55:04 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2016-05-12 09:55:04 +0200 |
| commit | c8b72b905c3696948618177799756c0ff40cbd59 (patch) | |
| tree | 2b20cfc8726dcc356f84548baf4a50266a33c87a | |
| parent | 1886672a10b4e989f1f8dba4b129a05823bfbd2d (diff) | |
DOC: State that play()/rec()/playrec() work on NumPy arrays
See #25.
| -rw-r--r-- | sounddevice.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sounddevice.py b/sounddevice.py index 7e8b192..522d626 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -255,7 +255,7 @@ _last_callback = None def play(data, samplerate=None, mapping=None, blocking=False, loop=False, **kwargs): - """Play back an array of audio data. + """Play back a NumPy array containing audio data. Parameters ---------- @@ -308,7 +308,7 @@ def play(data, samplerate=None, mapping=None, blocking=False, loop=False, def rec(frames=None, samplerate=None, channels=None, dtype=None, out=None, mapping=None, blocking=False, **kwargs): - """Record audio data. + """Record audio data into a NumPy array. Parameters ---------- @@ -380,7 +380,7 @@ def rec(frames=None, samplerate=None, channels=None, dtype=None, def playrec(data, samplerate=None, channels=None, dtype=None, out=None, input_mapping=None, output_mapping=None, blocking=False, **kwargs): - """Simultaneous playback and recording. + """Simultaneous playback and recording of NumPy arrays. Parameters ---------- |
