summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/checking-hardware.rst14
-rw-r--r--doc/api/convenience-functions.rst18
-rw-r--r--doc/api/index.rst15
-rw-r--r--doc/api/misc.rst17
-rw-r--r--doc/api/module-defaults.rst7
-rw-r--r--doc/api/platform-specific-settings.rst10
-rw-r--r--doc/api/raw-streams.rst11
-rw-r--r--doc/api/streams.rst14
8 files changed, 106 insertions, 0 deletions
diff --git a/doc/api/checking-hardware.rst b/doc/api/checking-hardware.rst
new file mode 100644
index 0000000..e2e7b7f
--- /dev/null
+++ b/doc/api/checking-hardware.rst
@@ -0,0 +1,14 @@
+Checking Available Hardware
+===========================
+
+.. currentmodule:: sounddevice
+
+.. autofunction:: query_devices
+
+.. autoclass:: DeviceList
+
+.. autofunction:: query_hostapis
+
+.. autofunction:: check_input_settings
+
+.. autofunction:: check_output_settings
diff --git a/doc/api/convenience-functions.rst b/doc/api/convenience-functions.rst
new file mode 100644
index 0000000..71c4733
--- /dev/null
+++ b/doc/api/convenience-functions.rst
@@ -0,0 +1,18 @@
+Convenience Functions using NumPy Arrays
+========================================
+
+.. currentmodule:: sounddevice
+
+.. autofunction:: play
+
+.. autofunction:: rec
+
+.. autofunction:: playrec
+
+.. autofunction:: wait
+
+.. autofunction:: stop
+
+.. autofunction:: get_status
+
+.. autofunction:: get_stream
diff --git a/doc/api/index.rst b/doc/api/index.rst
new file mode 100644
index 0000000..6ca5c53
--- /dev/null
+++ b/doc/api/index.rst
@@ -0,0 +1,15 @@
+API Documentation
+=================
+
+.. automodule:: sounddevice
+
+
+.. toctree::
+
+ convenience-functions
+ checking-hardware
+ module-defaults
+ platform-specific-settings
+ streams
+ raw-streams
+ misc
diff --git a/doc/api/misc.rst b/doc/api/misc.rst
new file mode 100644
index 0000000..cfdaa28
--- /dev/null
+++ b/doc/api/misc.rst
@@ -0,0 +1,17 @@
+Miscellaneous
+=============
+
+.. currentmodule:: sounddevice
+
+.. autoclass:: CallbackFlags
+ :members:
+
+.. autoclass:: CallbackStop
+
+.. autoclass:: CallbackAbort
+
+.. autoclass:: PortAudioError
+
+.. autofunction:: sleep
+
+.. autofunction:: get_portaudio_version
diff --git a/doc/api/module-defaults.rst b/doc/api/module-defaults.rst
new file mode 100644
index 0000000..fc89c92
--- /dev/null
+++ b/doc/api/module-defaults.rst
@@ -0,0 +1,7 @@
+Module-wide Default Settings
+============================
+
+.. currentmodule:: sounddevice
+
+.. autoclass:: default
+ :members: \ No newline at end of file
diff --git a/doc/api/platform-specific-settings.rst b/doc/api/platform-specific-settings.rst
new file mode 100644
index 0000000..685554d
--- /dev/null
+++ b/doc/api/platform-specific-settings.rst
@@ -0,0 +1,10 @@
+Platform-specific Settings
+==========================
+
+.. currentmodule:: sounddevice
+
+.. autoclass:: AsioSettings
+
+.. autoclass:: CoreAudioSettings
+
+.. autoclass:: WasapiSettings
diff --git a/doc/api/raw-streams.rst b/doc/api/raw-streams.rst
new file mode 100644
index 0000000..f165cb7
--- /dev/null
+++ b/doc/api/raw-streams.rst
@@ -0,0 +1,11 @@
+Raw Streams
+===========
+
+.. currentmodule:: sounddevice
+
+.. autoclass:: RawStream
+ :members: read, write
+
+.. autoclass:: RawInputStream
+
+.. autoclass:: RawOutputStream
diff --git a/doc/api/streams.rst b/doc/api/streams.rst
new file mode 100644
index 0000000..5fb1a03
--- /dev/null
+++ b/doc/api/streams.rst
@@ -0,0 +1,14 @@
+Streams using NumPy Arrays
+==========================
+
+.. currentmodule:: sounddevice
+
+.. autoclass:: Stream
+ :members:
+ :undoc-members:
+ :inherited-members:
+
+.. autoclass:: InputStream
+
+.. autoclass:: OutputStream
+