From f840ca05874a532f516d529f3c7f5efeae0594b0 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 21 Oct 2017 15:09:19 +0200 Subject: DOC: Add some module documentation --- src/sounddevice.py | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'src') 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' -- cgit v1.2.3