summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2017-10-21 15:09:19 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2017-10-21 15:09:19 +0200
commitf840ca05874a532f516d529f3c7f5efeae0594b0 (patch)
treea424bec6f7b111a40c771e1ade0a3035ef8d0ede /src
parent6e1d71547558159d492c944c55bdd57801fc0da7 (diff)
DOC: Add some module documentation
Diffstat (limited to 'src')
-rw-r--r--src/sounddevice.py29
1 files changed, 27 insertions, 2 deletions
diff --git a/src/sounddevice.py b/src/sounddevice.py
index 4ada5f6..3fda2c0 100644
--- a/src/sounddevice.py
+++ b/src/sounddevice.py
@@ -18,9 +18,34 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
-"""Play and Record Sound with Python.
+"""Play and Record Sound with Python
-http://python-sounddevice.readthedocs.io/
+API overview:
+ * Convenience functions to play and record NumPy arrays:
+ `play()`, `rec()`, `playrec()` and the related functions
+ `wait()`, `stop()`, `get_status()`, `get_stream()`
+
+ * Module-wide default settings: `default`
+
+ * PortAudio streams, using NumPy arrays:
+ `Stream`, `InputStream`, `OutputStream`
+
+ * PortAudio streams, using Python buffer objects (NumPy not needed):
+ `RawStream`, `RawInputStream`, `RawOutputStream`
+
+ * Functions to get information about the available hardware:
+ `query_devices()`, `query_hostapis()`,
+ `check_input_settings()`, `check_output_settings()`
+
+ * Miscellaneous functions and classes:
+ `sleep()`, `get_portaudio_version()`, `CallbackFlags`,
+ `CallbackStop`, `CallbackAbort`
+
+ * Platform-specific settings:
+ `AsioSettings`, `CoreAudioSettings`, `WasapiSettings`
+
+Online documentation:
+ http://python-sounddevice.readthedocs.io/
"""
__version__ = '0.3.8'