diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2024-10-05 12:08:36 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2024-10-08 23:36:32 +0200 |
| commit | f930b109f670241e88c3fd9d0362e26fdca69ace (patch) | |
| tree | d19efc6503f7b300e1595887dca9cbfbb02c5c1a /sounddevice.py | |
| parent | 00ef17cc8f3217128381a22135364460b5824e1a (diff) | |
DOC: restore viewcode highlighting, disable unwanted highlighting
Diffstat (limited to 'sounddevice.py')
| -rw-r--r-- | sounddevice.py | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/sounddevice.py b/sounddevice.py index 85144e9..9b9b9e8 100644 --- a/sounddevice.py +++ b/sounddevice.py @@ -1187,7 +1187,9 @@ class RawInputStream(_StreamBase): callback : callable User-supplied function to consume audio data in response to requests from an active stream. - The callback must have this signature:: + The callback must have this signature: + + .. code-block:: text callback(indata: buffer, frames: int, time: CData, status: CallbackFlags) -> None @@ -1271,7 +1273,9 @@ class RawOutputStream(_StreamBase): callback : callable User-supplied function to generate audio data in response to requests from an active stream. - The callback must have this signature:: + The callback must have this signature: + + .. code-block:: text callback(outdata: buffer, frames: int, time: CData, status: CallbackFlags) -> None @@ -1378,7 +1382,9 @@ class RawStream(RawInputStream, RawOutputStream): callback : callable User-supplied function to consume, process or generate audio data in response to requests from an active stream. - The callback must have this signature:: + The callback must have this signature: + + .. code-block:: text callback(indata: buffer, outdata: buffer, frames: int, time: CData, status: CallbackFlags) -> None @@ -1416,7 +1422,9 @@ class InputStream(RawInputStream): callback : callable User-supplied function to consume audio in response to requests from an active stream. - The callback must have this signature:: + The callback must have this signature: + + .. code-block:: text callback(indata: numpy.ndarray, frames: int, time: CData, status: CallbackFlags) -> None @@ -1489,7 +1497,9 @@ class OutputStream(RawOutputStream): callback : callable User-supplied function to generate audio data in response to requests from an active stream. - The callback must have this signature:: + The callback must have this signature: + + .. code-block:: text callback(outdata: numpy.ndarray, frames: int, time: CData, status: CallbackFlags) -> None @@ -1691,7 +1701,9 @@ class Stream(InputStream, OutputStream): read or written without blocking is returned by `read_available` and `write_available`, respectively. - The callback must have this signature:: + The callback must have this signature: + + .. code-block:: text callback(indata: ndarray, outdata: ndarray, frames: int, time: CData, status: CallbackFlags) -> None @@ -1794,7 +1806,9 @@ class Stream(InputStream, OutputStream): raises `CallbackStop`, or `stop()` is called, the stream finished callback will not be called until all generated sample data has been played. The callback must have this - signature:: + signature: + + .. code-block:: text finished_callback() -> None |
