From aea4714aacb774f0ab0e1bd0943a8cbcd8a87de0 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Tue, 22 Oct 2019 15:53:42 +0200 Subject: DOC: Update module docstring after splitting API docs See #207. --- doc/api/index.rst | 1 + doc/api/misc.rst | 8 ++++---- sounddevice.py | 14 +++++++------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/doc/api/index.rst b/doc/api/index.rst index 6ca5c53..1f987d5 100644 --- a/doc/api/index.rst +++ b/doc/api/index.rst @@ -3,6 +3,7 @@ API Documentation .. automodule:: sounddevice +---- .. toctree:: diff --git a/doc/api/misc.rst b/doc/api/misc.rst index cfdaa28..532bb41 100644 --- a/doc/api/misc.rst +++ b/doc/api/misc.rst @@ -3,6 +3,10 @@ Miscellaneous .. currentmodule:: sounddevice +.. autofunction:: sleep + +.. autofunction:: get_portaudio_version + .. autoclass:: CallbackFlags :members: @@ -11,7 +15,3 @@ Miscellaneous .. autoclass:: CallbackAbort .. autoclass:: PortAudioError - -.. autofunction:: sleep - -.. autofunction:: get_portaudio_version diff --git a/sounddevice.py b/sounddevice.py index 0e8515c..c0e0257 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -25,25 +25,25 @@ API overview: `play()`, `rec()`, `playrec()` and the related functions `wait()`, `stop()`, `get_status()`, `get_stream()` + * Functions to get information about the available hardware: + `query_devices()`, `query_hostapis()`, + `check_input_settings()`, `check_output_settings()` + * Module-wide default settings: `default` + * Platform-specific settings: + `AsioSettings`, `CoreAudioSettings`, `WasapiSettings` + * 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: https://python-sounddevice.readthedocs.io/ -- cgit v1.2.3