diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2015-12-09 11:09:11 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2015-12-09 11:09:11 +0100 |
| commit | 9217a2bdb23bf1d643fb7557451dd063a861044a (patch) | |
| tree | 7415f4c26ddd2e575411d7d048128815712f4c65 | |
| parent | aa3f6738cfd58b26728d45690c24ffa1b24c9f97 (diff) | |
DOC: more documentation for device selection
| -rw-r--r-- | README.rst | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 ^^^^^^^^^^^^^^^^ |
