From 9217a2bdb23bf1d643fb7557451dd063a861044a Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 9 Dec 2015 11:09:11 +0100 Subject: DOC: more documentation for device selection --- README.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 ^^^^^^^^^^^^^^^^ -- cgit v1.2.3