summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2015-12-09 11:09:11 +0100
committerMatthias Geier <Matthias.Geier@gmail.com>2015-12-09 11:09:11 +0100
commit9217a2bdb23bf1d643fb7557451dd063a861044a (patch)
tree7415f4c26ddd2e575411d7d048128815712f4c65
parentaa3f6738cfd58b26728d45690c24ffa1b24c9f97 (diff)
DOC: more documentation for device selection
-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
^^^^^^^^^^^^^^^^