diff options
| author | Ram Rachum <ram@rachum.com> | 2019-10-14 13:44:05 +0300 |
|---|---|---|
| committer | Ram Rachum <ram@rachum.com> | 2019-10-22 13:50:23 +0300 |
| commit | 0bb0e61feaabc51d44431131a9e3ed4bd0ece96f (patch) | |
| tree | 3c1bbb599eee2e03ae02c272511d1a7b202d1352 /doc | |
| parent | afe8fcc4134fe2b9a5f89c15c76fc2b67c15a3d4 (diff) | |
Split API documentation to multiple pages (#205)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/api.rst | 44 | ||||
| -rw-r--r-- | doc/api/checking-hardware.rst | 14 | ||||
| -rw-r--r-- | doc/api/convenience-functions.rst | 18 | ||||
| -rw-r--r-- | doc/api/index.rst | 15 | ||||
| -rw-r--r-- | doc/api/misc.rst | 17 | ||||
| -rw-r--r-- | doc/api/module-defaults.rst | 7 | ||||
| -rw-r--r-- | doc/api/platform-specific-settings.rst | 10 | ||||
| -rw-r--r-- | doc/api/raw-streams.rst | 11 | ||||
| -rw-r--r-- | doc/api/streams.rst | 14 | ||||
| -rw-r--r-- | doc/index.rst | 2 |
10 files changed, 107 insertions, 45 deletions
diff --git a/doc/api.rst b/doc/api.rst deleted file mode 100644 index dac0e84..0000000 --- a/doc/api.rst +++ /dev/null @@ -1,44 +0,0 @@ -API Documentation -================= - -.. automodule:: sounddevice - :members: - :undoc-members: - :exclude-members: RawInputStream, RawOutputStream, RawStream, - InputStream, OutputStream, Stream, - CallbackFlags, CallbackStop, CallbackAbort, - PortAudioError, DeviceList, - AsioSettings, CoreAudioSettings, WasapiSettings - -.. autoclass:: Stream - :members: - :undoc-members: - :inherited-members: - -.. autoclass:: InputStream - -.. autoclass:: OutputStream - -.. autoclass:: RawStream - :members: read, write - -.. autoclass:: RawInputStream - -.. autoclass:: RawOutputStream - -.. autoclass:: DeviceList - -.. autoclass:: CallbackFlags - :members: - -.. autoclass:: CallbackStop - -.. autoclass:: CallbackAbort - -.. autoclass:: PortAudioError - -.. autoclass:: AsioSettings - -.. autoclass:: CoreAudioSettings - -.. autoclass:: WasapiSettings 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 + diff --git a/doc/index.rst b/doc/index.rst index 1f73c92..ebffa9b 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -8,7 +8,7 @@ usage examples CONTRIBUTING - api + api/index version-history .. only:: html |
