summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 93b5505..9e36640 100644
--- a/README.rst
+++ b/README.rst
@@ -211,6 +211,17 @@ You can use the corresponding device ID to select a desired device by assigning
to `sounddevice.default.device` or by passing it as *device* argument to
`sounddevice.play()`, `sounddevice.Stream()` etc.
+Instead of the numerical device ID, you can also use a space-separated list of
+case-insensitive substrings of the device name (and the host API name, if
+needed). See `sounddevice.default.device` for details.
+
+.. code:: python
+
+ import sounddevice as sd
+ sd.default.samplerate = 44100
+ sd.default.device = 'digital output'
+ sd.play(myarray)
+
Callback Streams
^^^^^^^^^^^^^^^^