summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2015-10-28 17:27:45 +0100
committerMatthias Geier <Matthias.Geier@gmail.com>2015-10-28 17:27:45 +0100
commit9b2e79ef0b4dec8ac5a44d5cb71120bb5fb1e7c1 (patch)
tree6e4122fae9189e2299b5335fefd0e941d9ea97aa
parentf8c1c073903f141a5c838d1445119ce0848e3a88 (diff)
DOCS: Add "python -m sounddevice" to README
-rw-r--r--README.rst4
-rw-r--r--sounddevice.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index a51382e..23c94ac 100644
--- a/README.rst
+++ b/README.rst
@@ -199,6 +199,10 @@ Device Selection
In many cases, the default input/output device(s) will be the one(s) you want,
but it is of course possible to choose a different device.
Use `sounddevice.query_devices()` to get a list of supported devices.
+The same list can be obtained from a terminal by typing the command ::
+
+ python -m sounddevice
+
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.
diff --git a/sounddevice.py b/sounddevice.py
index 596c100..d28b8e8 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -543,11 +543,11 @@ def query_devices(index=None):
Notes
-----
- The list of devices can also be printed in a terminal:
+ The list of devices can also be displayed in a terminal:
.. code-block:: sh
- $ python -m sounddevice
+ python -m sounddevice
Examples
--------