Debian Codegraph @

documentation/source/api/functions/audio.rst

raw
1 Audio Setup
2 ======================================
3
4 Set of functions to inspect the system's audio configuration.
5
6 .. note::
7
8 These functions are available only if pyo is built with portaudio support.
9
10 .. currentmodule:: pyo
11
12 Functions in this category
13 ------------------------------
14
15 - :py:func:`pa_get_version` : Returns the version number, as an integer, of the current portaudio installation.
16 - :py:func:`pa_get_version_text` : Returns the textual description of the current portaudio installation.
17 - :py:func:`pa_count_host_apis` : Returns the number of host apis found by Portaudio.
18 - :py:func:`pa_list_host_apis` : Prints a list of all host apis found by Portaudio.
19 - :py:func:`pa_get_default_host_api` : Returns the index number of Portaudio’s default host api.
20 - :py:func:`pa_get_default_devices_from_host` : Returns the default input and output devices for a given audio host.
21 - :py:func:`pa_count_devices` : Returns the number of devices found by Portaudio.
22 - :py:func:`pa_list_devices` : Prints a list of all devices found by Portaudio.
23 - :py:func:`pa_get_devices_infos` : Returns informations about all devices found by Portaudio.
24 - :py:func:`pa_get_input_devices` : Returns input devices (device names, device indexes) found by Portaudio.
25 - :py:func:`pa_get_output_devices` : Returns output devices (device names, device indexes) found by Portaudio.
26 - :py:func:`pa_get_default_input` : Returns the index number of Portaudio’s default input device.
27 - :py:func:`pa_get_default_output` : Returns the index number of Portaudio’s default output device.
28 - :py:func:`pa_get_input_max_channels` : Retrieve the maximum number of input channels for the specified device.
29 - :py:func:`pa_get_output_max_channels` : Retrieve the maximum number of output channels for the specified device.
30
31 *pa_get_version*
32 ---------------------------------
33
34 .. autofunction:: pa_get_version
35
36 *pa_get_version_text*
37 ---------------------------------
38
39 .. autofunction:: pa_get_version_text
40
41 *pa_count_host_apis*
42 ---------------------------------
43
44 .. autofunction:: pa_count_host_apis
45
46 *pa_list_host_apis*
47 ---------------------------------
48
49 .. autofunction:: pa_list_host_apis
50
51 *pa_get_default_host_api*
52 ---------------------------------
53
54 .. autofunction:: pa_get_default_host_api
55
56 *pa_get_default_devices_from_host*
57 -------------------------------------
58
59 .. autofunction:: pa_get_default_devices_from_host
60
61 *pa_count_devices*
62 ---------------------------------
63
64 .. autofunction:: pa_count_devices
65
66 *pa_list_devices*
67 ---------------------------------
68
69 .. autofunction:: pa_list_devices
70
71 *pa_get_devices_infos*
72 ---------------------------------
73
74 .. autofunction:: pa_get_devices_infos
75
76 *pa_get_input_devices*
77 ---------------------------------
78
79 .. autofunction:: pa_get_input_devices
80
81 *pa_get_output_devices*
82 ---------------------------------
83
84 .. autofunction:: pa_get_output_devices
85
86 *pa_get_default_input*
87 ---------------------------------
88
89 .. autofunction:: pa_get_default_input
90
91 *pa_get_default_output*
92 ---------------------------------
93
94 .. autofunction:: pa_get_default_output
95
96 *pa_get_input_max_channels*
97 ---------------------------------
98
99 .. autofunction:: pa_get_input_max_channels(x)
100
101 *pa_get_output_max_channels*
102 ---------------------------------
103
104 .. autofunction:: pa_get_output_max_channels(x)
105