1# ----------------------------------------------------------------------------
2# pyglet
3# Copyright (c) 2006-2008 Alex Holkner
4# Copyright (c) 2008-2020 pyglet contributors
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions
9# are met:
10#
11#  * Redistributions of source code must retain the above copyright
12#    notice, this list of conditions and the following disclaimer.
13#  * Redistributions in binary form must reproduce the above copyright
14#    notice, this list of conditions and the following disclaimer in
15#    the documentation and/or other materials provided with the
16#    distribution.
17#  * Neither the name of pyglet nor the names of its
18#    contributors may be used to endorse or promote products
19#    derived from this software without specific prior written
20#    permission.
21#
22# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33# POSSIBILITY OF SUCH DAMAGE.
34# ----------------------------------------------------------------------------
35"""Wrapper for pulse
36
37Generated with:
38tools/genwrappers.py pulseaudio
39
40Do not modify this file.
41
42IMPORTANT: struct_timeval is incorrectly parsed by tools/genwrappers.py and
43was manually edited in this file.
44"""
45
46import ctypes
47from ctypes import *
48
49import pyglet.lib
50
51_lib = pyglet.lib.load_library('pulse')
52
53_int_types = (c_int16, c_int32)
54if hasattr(ctypes, 'c_int64'):
55    # Some builds of ctypes apparently do not have c_int64
56    # defined; it's a pretty good bet that these builds do not
57    # have 64-bit pointers.
58    _int_types += (ctypes.c_int64,)
59for t in _int_types:
60    if sizeof(t) == sizeof(c_size_t):
61        c_ptrdiff_t = t
62
63
64class c_void(Structure):
65    # c_void_p is a buggy return type, converting to int, so
66    # POINTER(None) == c_void_p is actually written as
67    # POINTER(c_void), so it can be treated as a real pointer.
68    _fields_ = [('dummy', c_int)]
69
70
71# /usr/include/pulse/version.h:40
72pa_get_library_version = _lib.pa_get_library_version
73pa_get_library_version.restype = c_char_p
74pa_get_library_version.argtypes = []
75
76PA_API_VERSION = 12  # /usr/include/pulse/version.h:46
77PA_PROTOCOL_VERSION = 30  # /usr/include/pulse/version.h:50
78PA_MAJOR = 6  # /usr/include/pulse/version.h:53
79PA_MINOR = 0  # /usr/include/pulse/version.h:56
80PA_MICRO = 0  # /usr/include/pulse/version.h:59
81PA_CHANNELS_MAX = 32  # /usr/include/pulse/sample.h:128
82PA_RATE_MAX = 192000  # /usr/include/pulse/sample.h:131
83enum_pa_sample_format = c_int
84PA_SAMPLE_U8 = 0
85PA_SAMPLE_ALAW = 1
86PA_SAMPLE_ULAW = 2
87PA_SAMPLE_S16LE = 3
88PA_SAMPLE_S16BE = 4
89PA_SAMPLE_FLOAT32LE = 5
90PA_SAMPLE_FLOAT32BE = 6
91PA_SAMPLE_S32LE = 7
92PA_SAMPLE_S32BE = 8
93PA_SAMPLE_S24LE = 9
94PA_SAMPLE_S24BE = 10
95PA_SAMPLE_S24_32LE = 11
96PA_SAMPLE_S24_32BE = 12
97PA_SAMPLE_MAX = 13
98PA_SAMPLE_INVALID = -1
99pa_sample_format_t = enum_pa_sample_format  # /usr/include/pulse/sample.h:179
100
101
102class struct_pa_sample_spec(Structure):
103    __slots__ = [
104        'format',
105        'rate',
106        'channels',
107    ]
108
109
110struct_pa_sample_spec._fields_ = [
111    ('format', pa_sample_format_t),
112    ('rate', c_uint32),
113    ('channels', c_uint8),
114]
115
116pa_sample_spec = struct_pa_sample_spec  # /usr/include/pulse/sample.h:257
117pa_usec_t = c_uint64  # /usr/include/pulse/sample.h:260
118# /usr/include/pulse/sample.h:263
119pa_bytes_per_second = _lib.pa_bytes_per_second
120pa_bytes_per_second.restype = c_size_t
121pa_bytes_per_second.argtypes = [POINTER(pa_sample_spec)]
122
123# /usr/include/pulse/sample.h:266
124pa_frame_size = _lib.pa_frame_size
125pa_frame_size.restype = c_size_t
126pa_frame_size.argtypes = [POINTER(pa_sample_spec)]
127
128# /usr/include/pulse/sample.h:269
129pa_sample_size = _lib.pa_sample_size
130pa_sample_size.restype = c_size_t
131pa_sample_size.argtypes = [POINTER(pa_sample_spec)]
132
133# /usr/include/pulse/sample.h:273
134pa_sample_size_of_format = _lib.pa_sample_size_of_format
135pa_sample_size_of_format.restype = c_size_t
136pa_sample_size_of_format.argtypes = [pa_sample_format_t]
137
138# /usr/include/pulse/sample.h:278
139pa_bytes_to_usec = _lib.pa_bytes_to_usec
140pa_bytes_to_usec.restype = pa_usec_t
141pa_bytes_to_usec.argtypes = [c_uint64, POINTER(pa_sample_spec)]
142
143# /usr/include/pulse/sample.h:283
144pa_usec_to_bytes = _lib.pa_usec_to_bytes
145pa_usec_to_bytes.restype = c_size_t
146pa_usec_to_bytes.argtypes = [pa_usec_t, POINTER(pa_sample_spec)]
147
148# /usr/include/pulse/sample.h:288
149pa_sample_spec_init = _lib.pa_sample_spec_init
150pa_sample_spec_init.restype = POINTER(pa_sample_spec)
151pa_sample_spec_init.argtypes = [POINTER(pa_sample_spec)]
152
153# /usr/include/pulse/sample.h:291
154# pa_sample_format_valid = _lib.pa_sample_format_valid
155# pa_sample_format_valid.restype = c_int
156# pa_sample_format_valid.argtypes = [c_uint]
157
158# /usr/include/pulse/sample.h:294
159# pa_sample_rate_valid = _lib.pa_sample_rate_valid
160# pa_sample_rate_valid.restype = c_int
161# pa_sample_rate_valid.argtypes = [c_uint32]
162
163# /usr/include/pulse/sample.h:298
164# pa_channels_valid = _lib.pa_channels_valid
165# pa_channels_valid.restype = c_int
166# pa_channels_valid.argtypes = [c_uint8]
167
168# /usr/include/pulse/sample.h:301
169pa_sample_spec_valid = _lib.pa_sample_spec_valid
170pa_sample_spec_valid.restype = c_int
171pa_sample_spec_valid.argtypes = [POINTER(pa_sample_spec)]
172
173# /usr/include/pulse/sample.h:304
174pa_sample_spec_equal = _lib.pa_sample_spec_equal
175pa_sample_spec_equal.restype = c_int
176pa_sample_spec_equal.argtypes = [POINTER(pa_sample_spec), POINTER(pa_sample_spec)]
177
178# /usr/include/pulse/sample.h:307
179pa_sample_format_to_string = _lib.pa_sample_format_to_string
180pa_sample_format_to_string.restype = c_char_p
181pa_sample_format_to_string.argtypes = [pa_sample_format_t]
182
183# /usr/include/pulse/sample.h:310
184pa_parse_sample_format = _lib.pa_parse_sample_format
185pa_parse_sample_format.restype = pa_sample_format_t
186pa_parse_sample_format.argtypes = [c_char_p]
187
188PA_SAMPLE_SPEC_SNPRINT_MAX = 32  # /usr/include/pulse/sample.h:317
189# /usr/include/pulse/sample.h:320
190pa_sample_spec_snprint = _lib.pa_sample_spec_snprint
191pa_sample_spec_snprint.restype = c_char_p
192pa_sample_spec_snprint.argtypes = [c_char_p, c_size_t, POINTER(pa_sample_spec)]
193
194PA_BYTES_SNPRINT_MAX = 11  # /usr/include/pulse/sample.h:327
195# /usr/include/pulse/sample.h:330
196pa_bytes_snprint = _lib.pa_bytes_snprint
197pa_bytes_snprint.restype = c_char_p
198pa_bytes_snprint.argtypes = [c_char_p, c_size_t, c_uint]
199
200# /usr/include/pulse/sample.h:334
201pa_sample_format_is_le = _lib.pa_sample_format_is_le
202pa_sample_format_is_le.restype = c_int
203pa_sample_format_is_le.argtypes = [pa_sample_format_t]
204
205# /usr/include/pulse/sample.h:338
206pa_sample_format_is_be = _lib.pa_sample_format_is_be
207pa_sample_format_is_be.restype = c_int
208pa_sample_format_is_be.argtypes = [pa_sample_format_t]
209
210enum_pa_context_state = c_int
211PA_CONTEXT_UNCONNECTED = 0
212PA_CONTEXT_CONNECTING = 1
213PA_CONTEXT_AUTHORIZING = 2
214PA_CONTEXT_SETTING_NAME = 3
215PA_CONTEXT_READY = 4
216PA_CONTEXT_FAILED = 5
217PA_CONTEXT_TERMINATED = 6
218pa_context_state_t = enum_pa_context_state  # /usr/include/pulse/def.h:45
219enum_pa_stream_state = c_int
220PA_STREAM_UNCONNECTED = 0
221PA_STREAM_CREATING = 1
222PA_STREAM_READY = 2
223PA_STREAM_FAILED = 3
224PA_STREAM_TERMINATED = 4
225pa_stream_state_t = enum_pa_stream_state  # /usr/include/pulse/def.h:74
226enum_pa_operation_state = c_int
227PA_OPERATION_RUNNING = 0
228PA_OPERATION_DONE = 1
229PA_OPERATION_CANCELLED = 2
230pa_operation_state_t = enum_pa_operation_state  # /usr/include/pulse/def.h:102
231enum_pa_context_flags = c_int
232PA_CONTEXT_NOFLAGS = 0
233PA_CONTEXT_NOAUTOSPAWN = 1
234PA_CONTEXT_NOFAIL = 2
235pa_context_flags_t = enum_pa_context_flags  # /usr/include/pulse/def.h:122
236enum_pa_direction = c_int
237PA_DIRECTION_OUTPUT = 1
238PA_DIRECTION_INPUT = 2
239pa_direction_t = enum_pa_direction  # /usr/include/pulse/def.h:137
240enum_pa_device_type = c_int
241PA_DEVICE_TYPE_SINK = 0
242PA_DEVICE_TYPE_SOURCE = 1
243pa_device_type_t = enum_pa_device_type  # /usr/include/pulse/def.h:148
244enum_pa_stream_direction = c_int
245PA_STREAM_NODIRECTION = 0
246PA_STREAM_PLAYBACK = 1
247PA_STREAM_RECORD = 2
248PA_STREAM_UPLOAD = 3
249pa_stream_direction_t = enum_pa_stream_direction  # /usr/include/pulse/def.h:161
250enum_pa_stream_flags = c_int
251PA_STREAM_NOFLAGS = 0
252PA_STREAM_START_CORKED = 1
253PA_STREAM_INTERPOLATE_TIMING = 2
254PA_STREAM_NOT_MONOTONIC = 4
255PA_STREAM_AUTO_TIMING_UPDATE = 8
256PA_STREAM_NO_REMAP_CHANNELS = 16
257PA_STREAM_NO_REMIX_CHANNELS = 32
258PA_STREAM_FIX_FORMAT = 64
259PA_STREAM_FIX_RATE = 128
260PA_STREAM_FIX_CHANNELS = 256
261PA_STREAM_DONT_MOVE = 512
262PA_STREAM_VARIABLE_RATE = 1024
263PA_STREAM_PEAK_DETECT = 2048
264PA_STREAM_START_MUTED = 4096
265PA_STREAM_ADJUST_LATENCY = 8192
266PA_STREAM_EARLY_REQUESTS = 16384
267PA_STREAM_DONT_INHIBIT_AUTO_SUSPEND = 32768
268PA_STREAM_START_UNMUTED = 65536
269PA_STREAM_FAIL_ON_SUSPEND = 131072
270PA_STREAM_RELATIVE_VOLUME = 262144
271PA_STREAM_PASSTHROUGH = 524288
272pa_stream_flags_t = enum_pa_stream_flags  # /usr/include/pulse/def.h:355
273
274
275class struct_pa_buffer_attr(Structure):
276    __slots__ = [
277        'maxlength',
278        'tlength',
279        'prebuf',
280        'minreq',
281        'fragsize',
282    ]
283
284
285struct_pa_buffer_attr._fields_ = [
286    ('maxlength', c_uint32),
287    ('tlength', c_uint32),
288    ('prebuf', c_uint32),
289    ('minreq', c_uint32),
290    ('fragsize', c_uint32),
291]
292
293pa_buffer_attr = struct_pa_buffer_attr  # /usr/include/pulse/def.h:452
294enum_pa_error_code = c_int
295PA_OK = 0
296PA_ERR_ACCESS = 1
297PA_ERR_COMMAND = 2
298PA_ERR_INVALID = 3
299PA_ERR_EXIST = 4
300PA_ERR_NOENTITY = 5
301PA_ERR_CONNECTIONREFUSED = 6
302PA_ERR_PROTOCOL = 7
303PA_ERR_TIMEOUT = 8
304PA_ERR_AUTHKEY = 9
305PA_ERR_INTERNAL = 10
306PA_ERR_CONNECTIONTERMINATED = 11
307PA_ERR_KILLED = 12
308PA_ERR_INVALIDSERVER = 13
309PA_ERR_MODINITFAILED = 14
310PA_ERR_BADSTATE = 15
311PA_ERR_NODATA = 16
312PA_ERR_VERSION = 17
313PA_ERR_TOOLARGE = 18
314PA_ERR_NOTSUPPORTED = 19
315PA_ERR_UNKNOWN = 20
316PA_ERR_NOEXTENSION = 21
317PA_ERR_OBSOLETE = 22
318PA_ERR_NOTIMPLEMENTED = 23
319PA_ERR_FORKED = 24
320PA_ERR_IO = 25
321PA_ERR_BUSY = 26
322PA_ERR_MAX = 27
323pa_error_code_t = enum_pa_error_code  # /usr/include/pulse/def.h:484
324enum_pa_subscription_mask = c_int
325PA_SUBSCRIPTION_MASK_NULL = 0
326PA_SUBSCRIPTION_MASK_SINK = 1
327PA_SUBSCRIPTION_MASK_SOURCE = 2
328PA_SUBSCRIPTION_MASK_SINK_INPUT = 4
329PA_SUBSCRIPTION_MASK_SOURCE_OUTPUT = 8
330PA_SUBSCRIPTION_MASK_MODULE = 16
331PA_SUBSCRIPTION_MASK_CLIENT = 32
332PA_SUBSCRIPTION_MASK_SAMPLE_CACHE = 64
333PA_SUBSCRIPTION_MASK_SERVER = 128
334PA_SUBSCRIPTION_MASK_AUTOLOAD = 256
335PA_SUBSCRIPTION_MASK_CARD = 512
336PA_SUBSCRIPTION_MASK_ALL = 767
337pa_subscription_mask_t = enum_pa_subscription_mask  # /usr/include/pulse/def.h:554
338enum_pa_subscription_event_type = c_int
339PA_SUBSCRIPTION_EVENT_SINK = 0
340PA_SUBSCRIPTION_EVENT_SOURCE = 1
341PA_SUBSCRIPTION_EVENT_SINK_INPUT = 2
342PA_SUBSCRIPTION_EVENT_SOURCE_OUTPUT = 3
343PA_SUBSCRIPTION_EVENT_MODULE = 4
344PA_SUBSCRIPTION_EVENT_CLIENT = 5
345PA_SUBSCRIPTION_EVENT_SAMPLE_CACHE = 6
346PA_SUBSCRIPTION_EVENT_SERVER = 7
347PA_SUBSCRIPTION_EVENT_AUTOLOAD = 8
348PA_SUBSCRIPTION_EVENT_CARD = 9
349PA_SUBSCRIPTION_EVENT_FACILITY_MASK = 15
350PA_SUBSCRIPTION_EVENT_NEW = 0
351PA_SUBSCRIPTION_EVENT_CHANGE = 16
352PA_SUBSCRIPTION_EVENT_REMOVE = 32
353PA_SUBSCRIPTION_EVENT_TYPE_MASK = 48
354pa_subscription_event_type_t = enum_pa_subscription_event_type  # /usr/include/pulse/def.h:605
355
356
357class struct_pa_timing_info(Structure):
358    __slots__ = [
359        'timestamp',
360        'synchronized_clocks',
361        'sink_usec',
362        'source_usec',
363        'transport_usec',
364        'playing',
365        'write_index_corrupt',
366        'write_index',
367        'read_index_corrupt',
368        'read_index',
369        'configured_sink_usec',
370        'configured_source_usec',
371        'since_underrun',
372    ]
373
374
375class struct_timeval(Structure):
376    _fields_ = [("tv_sec", c_long),
377                ("tv_usec", c_long)]
378
379
380struct_pa_timing_info._fields_ = [
381    ('timestamp', struct_timeval),
382    ('synchronized_clocks', c_int),
383    ('sink_usec', pa_usec_t),
384    ('source_usec', pa_usec_t),
385    ('transport_usec', pa_usec_t),
386    ('playing', c_int),
387    ('write_index_corrupt', c_int),
388    ('write_index', c_int64),
389    ('read_index_corrupt', c_int),
390    ('read_index', c_int64),
391    ('configured_sink_usec', pa_usec_t),
392    ('configured_source_usec', pa_usec_t),
393    ('since_underrun', c_int64),
394]
395
396pa_timing_info = struct_pa_timing_info  # /usr/include/pulse/def.h:725
397
398
399class struct_pa_spawn_api(Structure):
400    __slots__ = [
401        'prefork',
402        'postfork',
403        'atfork',
404    ]
405
406
407struct_pa_spawn_api._fields_ = [
408    ('prefork', POINTER(CFUNCTYPE(None))),
409    ('postfork', POINTER(CFUNCTYPE(None))),
410    ('atfork', POINTER(CFUNCTYPE(None))),
411]
412
413pa_spawn_api = struct_pa_spawn_api  # /usr/include/pulse/def.h:749
414enum_pa_seek_mode = c_int
415PA_SEEK_RELATIVE = 0
416PA_SEEK_ABSOLUTE = 1
417PA_SEEK_RELATIVE_ON_READ = 2
418PA_SEEK_RELATIVE_END = 3
419pa_seek_mode_t = enum_pa_seek_mode  # /usr/include/pulse/def.h:764
420enum_pa_sink_flags = c_int
421PA_SINK_NOFLAGS = 0
422PA_SINK_HW_VOLUME_CTRL = 1
423PA_SINK_LATENCY = 2
424PA_SINK_HARDWARE = 4
425PA_SINK_NETWORK = 8
426PA_SINK_HW_MUTE_CTRL = 16
427PA_SINK_DECIBEL_VOLUME = 32
428PA_SINK_FLAT_VOLUME = 64
429PA_SINK_DYNAMIC_LATENCY = 128
430PA_SINK_SET_FORMATS = 256
431pa_sink_flags_t = enum_pa_sink_flags  # /usr/include/pulse/def.h:829
432enum_pa_sink_state = c_int
433PA_SINK_INVALID_STATE = -1
434PA_SINK_RUNNING = 0
435PA_SINK_IDLE = 1
436PA_SINK_SUSPENDED = 2
437PA_SINK_INIT = -2
438PA_SINK_UNLINKED = -3
439pa_sink_state_t = enum_pa_sink_state  # /usr/include/pulse/def.h:875
440enum_pa_source_flags = c_int
441PA_SOURCE_NOFLAGS = 0
442PA_SOURCE_HW_VOLUME_CTRL = 1
443PA_SOURCE_LATENCY = 2
444PA_SOURCE_HARDWARE = 4
445PA_SOURCE_NETWORK = 8
446PA_SOURCE_HW_MUTE_CTRL = 16
447PA_SOURCE_DECIBEL_VOLUME = 32
448PA_SOURCE_DYNAMIC_LATENCY = 64
449PA_SOURCE_FLAT_VOLUME = 128
450pa_source_flags_t = enum_pa_source_flags  # /usr/include/pulse/def.h:946
451enum_pa_source_state = c_int
452PA_SOURCE_INVALID_STATE = -1
453PA_SOURCE_RUNNING = 0
454PA_SOURCE_IDLE = 1
455PA_SOURCE_SUSPENDED = 2
456PA_SOURCE_INIT = -2
457PA_SOURCE_UNLINKED = -3
458pa_source_state_t = enum_pa_source_state  # /usr/include/pulse/def.h:991
459pa_free_cb_t = CFUNCTYPE(None, POINTER(None))  # /usr/include/pulse/def.h:1014
460enum_pa_port_available = c_int
461PA_PORT_AVAILABLE_UNKNOWN = 0
462PA_PORT_AVAILABLE_NO = 1
463PA_PORT_AVAILABLE_YES = 2
464pa_port_available_t = enum_pa_port_available  # /usr/include/pulse/def.h:1040
465
466
467class struct_pa_mainloop_api(Structure):
468    __slots__ = [
469    ]
470
471
472struct_pa_mainloop_api._fields_ = [
473    ('_opaque_struct', c_int)
474]
475
476
477class struct_pa_mainloop_api(Structure):
478    __slots__ = [
479    ]
480
481
482struct_pa_mainloop_api._fields_ = [
483    ('_opaque_struct', c_int)
484]
485
486pa_mainloop_api = struct_pa_mainloop_api  # /usr/include/pulse/mainloop-api.h:47
487enum_pa_io_event_flags = c_int
488PA_IO_EVENT_NULL = 0
489PA_IO_EVENT_INPUT = 1
490PA_IO_EVENT_OUTPUT = 2
491PA_IO_EVENT_HANGUP = 4
492PA_IO_EVENT_ERROR = 8
493pa_io_event_flags_t = enum_pa_io_event_flags  # /usr/include/pulse/mainloop-api.h:56
494
495
496class struct_pa_io_event(Structure):
497    __slots__ = [
498    ]
499
500
501struct_pa_io_event._fields_ = [
502    ('_opaque_struct', c_int)
503]
504
505
506class struct_pa_io_event(Structure):
507    __slots__ = [
508    ]
509
510
511struct_pa_io_event._fields_ = [
512    ('_opaque_struct', c_int)
513]
514
515pa_io_event = struct_pa_io_event  # /usr/include/pulse/mainloop-api.h:59
516pa_io_event_cb_t = CFUNCTYPE(None, POINTER(pa_mainloop_api), POINTER(pa_io_event), c_int, pa_io_event_flags_t,
517                             POINTER(None))  # /usr/include/pulse/mainloop-api.h:61
518pa_io_event_destroy_cb_t = CFUNCTYPE(None, POINTER(pa_mainloop_api), POINTER(pa_io_event),
519                                     POINTER(None))  # /usr/include/pulse/mainloop-api.h:63
520
521
522class struct_pa_time_event(Structure):
523    __slots__ = [
524    ]
525
526
527struct_pa_time_event._fields_ = [
528    ('_opaque_struct', c_int)
529]
530
531
532class struct_pa_time_event(Structure):
533    __slots__ = [
534    ]
535
536
537struct_pa_time_event._fields_ = [
538    ('_opaque_struct', c_int)
539]
540
541pa_time_event = struct_pa_time_event  # /usr/include/pulse/mainloop-api.h:66
542
543pa_time_event_cb_t = CFUNCTYPE(None, POINTER(pa_mainloop_api), POINTER(pa_time_event), POINTER(struct_timeval),
544                               POINTER(None))  # /usr/include/pulse/mainloop-api.h:68
545pa_time_event_destroy_cb_t = CFUNCTYPE(None, POINTER(pa_mainloop_api), POINTER(pa_time_event),
546                                       POINTER(None))  # /usr/include/pulse/mainloop-api.h:70
547
548
549class struct_pa_defer_event(Structure):
550    __slots__ = [
551    ]
552
553
554struct_pa_defer_event._fields_ = [
555    ('_opaque_struct', c_int)
556]
557
558
559class struct_pa_defer_event(Structure):
560    __slots__ = [
561    ]
562
563
564struct_pa_defer_event._fields_ = [
565    ('_opaque_struct', c_int)
566]
567
568pa_defer_event = struct_pa_defer_event  # /usr/include/pulse/mainloop-api.h:73
569pa_defer_event_cb_t = CFUNCTYPE(None, POINTER(pa_mainloop_api), POINTER(pa_defer_event),
570                                POINTER(None))  # /usr/include/pulse/mainloop-api.h:75
571pa_defer_event_destroy_cb_t = CFUNCTYPE(None, POINTER(pa_mainloop_api), POINTER(pa_defer_event),
572                                        POINTER(None))  # /usr/include/pulse/mainloop-api.h:77
573# /usr/include/pulse/mainloop-api.h:120
574pa_mainloop_api_once = _lib.pa_mainloop_api_once
575pa_mainloop_api_once.restype = None
576pa_mainloop_api_once.argtypes = [POINTER(pa_mainloop_api), CFUNCTYPE(None, POINTER(pa_mainloop_api), POINTER(None)),
577                                 POINTER(None)]
578
579enum_pa_channel_position = c_int
580PA_CHANNEL_POSITION_INVALID = -1
581PA_CHANNEL_POSITION_MONO = 0
582PA_CHANNEL_POSITION_FRONT_LEFT = 1
583PA_CHANNEL_POSITION_FRONT_RIGHT = 2
584PA_CHANNEL_POSITION_FRONT_CENTER = 3
585PA_CHANNEL_POSITION_LEFT = 0
586PA_CHANNEL_POSITION_RIGHT = 0
587PA_CHANNEL_POSITION_CENTER = 0
588PA_CHANNEL_POSITION_REAR_CENTER = 1
589PA_CHANNEL_POSITION_REAR_LEFT = 2
590PA_CHANNEL_POSITION_REAR_RIGHT = 3
591PA_CHANNEL_POSITION_LFE = 4
592PA_CHANNEL_POSITION_SUBWOOFER = 0
593PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER = 1
594PA_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER = 2
595PA_CHANNEL_POSITION_SIDE_LEFT = 3
596PA_CHANNEL_POSITION_SIDE_RIGHT = 4
597PA_CHANNEL_POSITION_AUX0 = 5
598PA_CHANNEL_POSITION_AUX1 = 6
599PA_CHANNEL_POSITION_AUX2 = 7
600PA_CHANNEL_POSITION_AUX3 = 8
601PA_CHANNEL_POSITION_AUX4 = 9
602PA_CHANNEL_POSITION_AUX5 = 10
603PA_CHANNEL_POSITION_AUX6 = 11
604PA_CHANNEL_POSITION_AUX7 = 12
605PA_CHANNEL_POSITION_AUX8 = 13
606PA_CHANNEL_POSITION_AUX9 = 14
607PA_CHANNEL_POSITION_AUX10 = 15
608PA_CHANNEL_POSITION_AUX11 = 16
609PA_CHANNEL_POSITION_AUX12 = 17
610PA_CHANNEL_POSITION_AUX13 = 18
611PA_CHANNEL_POSITION_AUX14 = 19
612PA_CHANNEL_POSITION_AUX15 = 20
613PA_CHANNEL_POSITION_AUX16 = 21
614PA_CHANNEL_POSITION_AUX17 = 22
615PA_CHANNEL_POSITION_AUX18 = 23
616PA_CHANNEL_POSITION_AUX19 = 24
617PA_CHANNEL_POSITION_AUX20 = 25
618PA_CHANNEL_POSITION_AUX21 = 26
619PA_CHANNEL_POSITION_AUX22 = 27
620PA_CHANNEL_POSITION_AUX23 = 28
621PA_CHANNEL_POSITION_AUX24 = 29
622PA_CHANNEL_POSITION_AUX25 = 30
623PA_CHANNEL_POSITION_AUX26 = 31
624PA_CHANNEL_POSITION_AUX27 = 32
625PA_CHANNEL_POSITION_AUX28 = 33
626PA_CHANNEL_POSITION_AUX29 = 34
627PA_CHANNEL_POSITION_AUX30 = 35
628PA_CHANNEL_POSITION_AUX31 = 36
629PA_CHANNEL_POSITION_TOP_CENTER = 37
630PA_CHANNEL_POSITION_TOP_FRONT_LEFT = 38
631PA_CHANNEL_POSITION_TOP_FRONT_RIGHT = 39
632PA_CHANNEL_POSITION_TOP_FRONT_CENTER = 40
633PA_CHANNEL_POSITION_TOP_REAR_LEFT = 41
634PA_CHANNEL_POSITION_TOP_REAR_RIGHT = 42
635PA_CHANNEL_POSITION_TOP_REAR_CENTER = 43
636PA_CHANNEL_POSITION_MAX = 44
637pa_channel_position_t = enum_pa_channel_position  # /usr/include/pulse/channelmap.h:147
638pa_channel_position_mask_t = c_uint64  # /usr/include/pulse/channelmap.h:210
639enum_pa_channel_map_def = c_int
640PA_CHANNEL_MAP_AIFF = 0
641PA_CHANNEL_MAP_ALSA = 1
642PA_CHANNEL_MAP_AUX = 2
643PA_CHANNEL_MAP_WAVEEX = 3
644PA_CHANNEL_MAP_OSS = 4
645PA_CHANNEL_MAP_DEF_MAX = 5
646PA_CHANNEL_MAP_DEFAULT = 0
647pa_channel_map_def_t = enum_pa_channel_map_def  # /usr/include/pulse/channelmap.h:247
648
649
650class struct_pa_channel_map(Structure):
651    __slots__ = [
652        'channels',
653        'map',
654    ]
655
656
657struct_pa_channel_map._fields_ = [
658    ('channels', c_uint8),
659    ('map', pa_channel_position_t * 32),
660]
661
662pa_channel_map = struct_pa_channel_map  # /usr/include/pulse/channelmap.h:268
663# /usr/include/pulse/channelmap.h:273
664pa_channel_map_init = _lib.pa_channel_map_init
665pa_channel_map_init.restype = POINTER(pa_channel_map)
666pa_channel_map_init.argtypes = [POINTER(pa_channel_map)]
667
668# /usr/include/pulse/channelmap.h:276
669pa_channel_map_init_mono = _lib.pa_channel_map_init_mono
670pa_channel_map_init_mono.restype = POINTER(pa_channel_map)
671pa_channel_map_init_mono.argtypes = [POINTER(pa_channel_map)]
672
673# /usr/include/pulse/channelmap.h:279
674pa_channel_map_init_stereo = _lib.pa_channel_map_init_stereo
675pa_channel_map_init_stereo.restype = POINTER(pa_channel_map)
676pa_channel_map_init_stereo.argtypes = [POINTER(pa_channel_map)]
677
678# /usr/include/pulse/channelmap.h:285
679pa_channel_map_init_auto = _lib.pa_channel_map_init_auto
680pa_channel_map_init_auto.restype = POINTER(pa_channel_map)
681pa_channel_map_init_auto.argtypes = [POINTER(pa_channel_map), c_uint, pa_channel_map_def_t]
682
683# /usr/include/pulse/channelmap.h:291
684pa_channel_map_init_extend = _lib.pa_channel_map_init_extend
685pa_channel_map_init_extend.restype = POINTER(pa_channel_map)
686pa_channel_map_init_extend.argtypes = [POINTER(pa_channel_map), c_uint, pa_channel_map_def_t]
687
688# /usr/include/pulse/channelmap.h:294
689pa_channel_position_to_string = _lib.pa_channel_position_to_string
690pa_channel_position_to_string.restype = c_char_p
691pa_channel_position_to_string.argtypes = [pa_channel_position_t]
692
693# /usr/include/pulse/channelmap.h:297
694pa_channel_position_from_string = _lib.pa_channel_position_from_string
695pa_channel_position_from_string.restype = pa_channel_position_t
696pa_channel_position_from_string.argtypes = [c_char_p]
697
698# /usr/include/pulse/channelmap.h:300
699pa_channel_position_to_pretty_string = _lib.pa_channel_position_to_pretty_string
700pa_channel_position_to_pretty_string.restype = c_char_p
701pa_channel_position_to_pretty_string.argtypes = [pa_channel_position_t]
702
703PA_CHANNEL_MAP_SNPRINT_MAX = 336  # /usr/include/pulse/channelmap.h:307
704# /usr/include/pulse/channelmap.h:310
705pa_channel_map_snprint = _lib.pa_channel_map_snprint
706pa_channel_map_snprint.restype = c_char_p
707pa_channel_map_snprint.argtypes = [c_char_p, c_size_t, POINTER(pa_channel_map)]
708
709# /usr/include/pulse/channelmap.h:316
710pa_channel_map_parse = _lib.pa_channel_map_parse
711pa_channel_map_parse.restype = POINTER(pa_channel_map)
712pa_channel_map_parse.argtypes = [POINTER(pa_channel_map), c_char_p]
713
714# /usr/include/pulse/channelmap.h:319
715pa_channel_map_equal = _lib.pa_channel_map_equal
716pa_channel_map_equal.restype = c_int
717pa_channel_map_equal.argtypes = [POINTER(pa_channel_map), POINTER(pa_channel_map)]
718
719# /usr/include/pulse/channelmap.h:322
720pa_channel_map_valid = _lib.pa_channel_map_valid
721pa_channel_map_valid.restype = c_int
722pa_channel_map_valid.argtypes = [POINTER(pa_channel_map)]
723
724# /usr/include/pulse/channelmap.h:326
725pa_channel_map_compatible = _lib.pa_channel_map_compatible
726pa_channel_map_compatible.restype = c_int
727pa_channel_map_compatible.argtypes = [POINTER(pa_channel_map), POINTER(pa_sample_spec)]
728
729# /usr/include/pulse/channelmap.h:329
730pa_channel_map_superset = _lib.pa_channel_map_superset
731pa_channel_map_superset.restype = c_int
732pa_channel_map_superset.argtypes = [POINTER(pa_channel_map), POINTER(pa_channel_map)]
733
734# /usr/include/pulse/channelmap.h:334
735pa_channel_map_can_balance = _lib.pa_channel_map_can_balance
736pa_channel_map_can_balance.restype = c_int
737pa_channel_map_can_balance.argtypes = [POINTER(pa_channel_map)]
738
739# /usr/include/pulse/channelmap.h:339
740pa_channel_map_can_fade = _lib.pa_channel_map_can_fade
741pa_channel_map_can_fade.restype = c_int
742pa_channel_map_can_fade.argtypes = [POINTER(pa_channel_map)]
743
744# /usr/include/pulse/channelmap.h:345
745pa_channel_map_to_name = _lib.pa_channel_map_to_name
746pa_channel_map_to_name.restype = c_char_p
747pa_channel_map_to_name.argtypes = [POINTER(pa_channel_map)]
748
749# /usr/include/pulse/channelmap.h:350
750pa_channel_map_to_pretty_name = _lib.pa_channel_map_to_pretty_name
751pa_channel_map_to_pretty_name.restype = c_char_p
752pa_channel_map_to_pretty_name.argtypes = [POINTER(pa_channel_map)]
753
754# /usr/include/pulse/channelmap.h:354
755pa_channel_map_has_position = _lib.pa_channel_map_has_position
756pa_channel_map_has_position.restype = c_int
757pa_channel_map_has_position.argtypes = [POINTER(pa_channel_map), pa_channel_position_t]
758
759# /usr/include/pulse/channelmap.h:357
760pa_channel_map_mask = _lib.pa_channel_map_mask
761pa_channel_map_mask.restype = pa_channel_position_mask_t
762pa_channel_map_mask.argtypes = [POINTER(pa_channel_map)]
763
764
765class struct_pa_operation(Structure):
766    __slots__ = [
767    ]
768
769
770struct_pa_operation._fields_ = [
771    ('_opaque_struct', c_int)
772]
773
774
775class struct_pa_operation(Structure):
776    __slots__ = [
777    ]
778
779
780struct_pa_operation._fields_ = [
781    ('_opaque_struct', c_int)
782]
783
784pa_operation = struct_pa_operation  # /usr/include/pulse/operation.h:33
785pa_operation_notify_cb_t = CFUNCTYPE(None, POINTER(pa_operation), POINTER(None))  # /usr/include/pulse/operation.h:36
786# /usr/include/pulse/operation.h:39
787pa_operation_ref = _lib.pa_operation_ref
788pa_operation_ref.restype = POINTER(pa_operation)
789pa_operation_ref.argtypes = [POINTER(pa_operation)]
790
791# /usr/include/pulse/operation.h:42
792pa_operation_unref = _lib.pa_operation_unref
793pa_operation_unref.restype = None
794pa_operation_unref.argtypes = [POINTER(pa_operation)]
795
796# /usr/include/pulse/operation.h:49
797pa_operation_cancel = _lib.pa_operation_cancel
798pa_operation_cancel.restype = None
799pa_operation_cancel.argtypes = [POINTER(pa_operation)]
800
801# /usr/include/pulse/operation.h:52
802pa_operation_get_state = _lib.pa_operation_get_state
803pa_operation_get_state.restype = pa_operation_state_t
804pa_operation_get_state.argtypes = [POINTER(pa_operation)]
805
806# /usr/include/pulse/operation.h:60
807pa_operation_set_state_callback = _lib.pa_operation_set_state_callback
808pa_operation_set_state_callback.restype = None
809pa_operation_set_state_callback.argtypes = [POINTER(pa_operation), pa_operation_notify_cb_t, POINTER(None)]
810
811
812class struct_pa_context(Structure):
813    __slots__ = [
814    ]
815
816
817struct_pa_context._fields_ = [
818    ('_opaque_struct', c_int)
819]
820
821
822class struct_pa_context(Structure):
823    __slots__ = [
824    ]
825
826
827struct_pa_context._fields_ = [
828    ('_opaque_struct', c_int)
829]
830
831pa_context = struct_pa_context  # /usr/include/pulse/context.h:154
832pa_context_notify_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(None))  # /usr/include/pulse/context.h:157
833pa_context_success_cb_t = CFUNCTYPE(None, POINTER(pa_context), c_int, POINTER(None))  # /usr/include/pulse/context.h:160
834
835
836class struct_pa_proplist(Structure):
837    __slots__ = [
838    ]
839
840
841struct_pa_proplist._fields_ = [
842    ('_opaque_struct', c_int)
843]
844
845
846class struct_pa_proplist(Structure):
847    __slots__ = [
848    ]
849
850
851struct_pa_proplist._fields_ = [
852    ('_opaque_struct', c_int)
853]
854
855pa_proplist = struct_pa_proplist  # /usr/include/pulse/proplist.h:272
856pa_context_event_cb_t = CFUNCTYPE(None, POINTER(pa_context), c_char_p, POINTER(pa_proplist),
857                                  POINTER(None))  # /usr/include/pulse/context.h:167
858# /usr/include/pulse/context.h:172
859pa_context_new = _lib.pa_context_new
860pa_context_new.restype = POINTER(pa_context)
861pa_context_new.argtypes = [POINTER(pa_mainloop_api), c_char_p]
862
863# /usr/include/pulse/context.h:177
864pa_context_new_with_proplist = _lib.pa_context_new_with_proplist
865pa_context_new_with_proplist.restype = POINTER(pa_context)
866pa_context_new_with_proplist.argtypes = [POINTER(pa_mainloop_api), c_char_p, POINTER(pa_proplist)]
867
868# /usr/include/pulse/context.h:180
869pa_context_unref = _lib.pa_context_unref
870pa_context_unref.restype = None
871pa_context_unref.argtypes = [POINTER(pa_context)]
872
873# /usr/include/pulse/context.h:183
874pa_context_ref = _lib.pa_context_ref
875pa_context_ref.restype = POINTER(pa_context)
876pa_context_ref.argtypes = [POINTER(pa_context)]
877
878# /usr/include/pulse/context.h:186
879pa_context_set_state_callback = _lib.pa_context_set_state_callback
880pa_context_set_state_callback.restype = None
881pa_context_set_state_callback.argtypes = [POINTER(pa_context), pa_context_notify_cb_t, POINTER(None)]
882
883# /usr/include/pulse/context.h:190
884pa_context_set_event_callback = _lib.pa_context_set_event_callback
885pa_context_set_event_callback.restype = None
886pa_context_set_event_callback.argtypes = [POINTER(pa_context), pa_context_event_cb_t, POINTER(None)]
887
888# /usr/include/pulse/context.h:193
889pa_context_errno = _lib.pa_context_errno
890pa_context_errno.restype = c_int
891pa_context_errno.argtypes = [POINTER(pa_context)]
892
893# /usr/include/pulse/context.h:196
894pa_context_is_pending = _lib.pa_context_is_pending
895pa_context_is_pending.restype = c_int
896pa_context_is_pending.argtypes = [POINTER(pa_context)]
897
898# /usr/include/pulse/context.h:199
899pa_context_get_state = _lib.pa_context_get_state
900pa_context_get_state.restype = pa_context_state_t
901pa_context_get_state.argtypes = [POINTER(pa_context)]
902
903# /usr/include/pulse/context.h:209
904pa_context_connect = _lib.pa_context_connect
905pa_context_connect.restype = c_int
906pa_context_connect.argtypes = [POINTER(pa_context), c_char_p, pa_context_flags_t, POINTER(pa_spawn_api)]
907
908# /usr/include/pulse/context.h:212
909pa_context_disconnect = _lib.pa_context_disconnect
910pa_context_disconnect.restype = None
911pa_context_disconnect.argtypes = [POINTER(pa_context)]
912
913# /usr/include/pulse/context.h:215
914pa_context_drain = _lib.pa_context_drain
915pa_context_drain.restype = POINTER(pa_operation)
916pa_context_drain.argtypes = [POINTER(pa_context), pa_context_notify_cb_t, POINTER(None)]
917
918# /usr/include/pulse/context.h:220
919pa_context_exit_daemon = _lib.pa_context_exit_daemon
920pa_context_exit_daemon.restype = POINTER(pa_operation)
921pa_context_exit_daemon.argtypes = [POINTER(pa_context), pa_context_success_cb_t, POINTER(None)]
922
923# /usr/include/pulse/context.h:223
924pa_context_set_default_sink = _lib.pa_context_set_default_sink
925pa_context_set_default_sink.restype = POINTER(pa_operation)
926pa_context_set_default_sink.argtypes = [POINTER(pa_context), c_char_p, pa_context_success_cb_t, POINTER(None)]
927
928# /usr/include/pulse/context.h:226
929pa_context_set_default_source = _lib.pa_context_set_default_source
930pa_context_set_default_source.restype = POINTER(pa_operation)
931pa_context_set_default_source.argtypes = [POINTER(pa_context), c_char_p, pa_context_success_cb_t, POINTER(None)]
932
933# /usr/include/pulse/context.h:229
934pa_context_is_local = _lib.pa_context_is_local
935pa_context_is_local.restype = c_int
936pa_context_is_local.argtypes = [POINTER(pa_context)]
937
938# /usr/include/pulse/context.h:232
939pa_context_set_name = _lib.pa_context_set_name
940pa_context_set_name.restype = POINTER(pa_operation)
941pa_context_set_name.argtypes = [POINTER(pa_context), c_char_p, pa_context_success_cb_t, POINTER(None)]
942
943# /usr/include/pulse/context.h:235
944pa_context_get_server = _lib.pa_context_get_server
945pa_context_get_server.restype = c_char_p
946pa_context_get_server.argtypes = [POINTER(pa_context)]
947
948# /usr/include/pulse/context.h:238
949pa_context_get_protocol_version = _lib.pa_context_get_protocol_version
950pa_context_get_protocol_version.restype = c_uint32
951pa_context_get_protocol_version.argtypes = [POINTER(pa_context)]
952
953# /usr/include/pulse/context.h:241
954pa_context_get_server_protocol_version = _lib.pa_context_get_server_protocol_version
955pa_context_get_server_protocol_version.restype = c_uint32
956pa_context_get_server_protocol_version.argtypes = [POINTER(pa_context)]
957
958enum_pa_update_mode = c_int
959PA_UPDATE_SET = 0
960PA_UPDATE_MERGE = 1
961PA_UPDATE_REPLACE = 2
962pa_update_mode_t = enum_pa_update_mode  # /usr/include/pulse/proplist.h:337
963# /usr/include/pulse/context.h:248
964pa_context_proplist_update = _lib.pa_context_proplist_update
965pa_context_proplist_update.restype = POINTER(pa_operation)
966pa_context_proplist_update.argtypes = [POINTER(pa_context), pa_update_mode_t, POINTER(pa_proplist),
967                                       pa_context_success_cb_t, POINTER(None)]
968
969# /usr/include/pulse/context.h:251
970pa_context_proplist_remove = _lib.pa_context_proplist_remove
971pa_context_proplist_remove.restype = POINTER(pa_operation)
972pa_context_proplist_remove.argtypes = [POINTER(pa_context), POINTER(c_char_p), pa_context_success_cb_t, POINTER(None)]
973
974# /usr/include/pulse/context.h:256
975pa_context_get_index = _lib.pa_context_get_index
976pa_context_get_index.restype = c_uint32
977pa_context_get_index.argtypes = [POINTER(pa_context)]
978
979# /usr/include/pulse/context.h:260
980pa_context_rttime_new = _lib.pa_context_rttime_new
981pa_context_rttime_new.restype = POINTER(pa_time_event)
982pa_context_rttime_new.argtypes = [POINTER(pa_context), pa_usec_t, pa_time_event_cb_t, POINTER(None)]
983
984# /usr/include/pulse/context.h:264
985pa_context_rttime_restart = _lib.pa_context_rttime_restart
986pa_context_rttime_restart.restype = None
987pa_context_rttime_restart.argtypes = [POINTER(pa_context), POINTER(pa_time_event), pa_usec_t]
988
989# /usr/include/pulse/context.h:279
990pa_context_get_tile_size = _lib.pa_context_get_tile_size
991pa_context_get_tile_size.restype = c_size_t
992pa_context_get_tile_size.argtypes = [POINTER(pa_context), POINTER(pa_sample_spec)]
993
994# /usr/include/pulse/context.h:287
995# pa_context_load_cookie_from_file = _lib.pa_context_load_cookie_from_file
996# pa_context_load_cookie_from_file.restype = c_int
997# pa_context_load_cookie_from_file.argtypes = [POINTER(pa_context), c_char_p]
998
999pa_volume_t = c_uint32  # /usr/include/pulse/volume.h:120
1000
1001
1002class struct_pa_cvolume(Structure):
1003    __slots__ = [
1004        'channels',
1005        'values',
1006    ]
1007
1008
1009struct_pa_cvolume._fields_ = [
1010    ('channels', c_uint8),
1011    ('values', pa_volume_t * 32),
1012]
1013
1014pa_cvolume = struct_pa_cvolume  # /usr/include/pulse/volume.h:151
1015# /usr/include/pulse/volume.h:154
1016pa_cvolume_equal = _lib.pa_cvolume_equal
1017pa_cvolume_equal.restype = c_int
1018pa_cvolume_equal.argtypes = [POINTER(pa_cvolume), POINTER(pa_cvolume)]
1019
1020# /usr/include/pulse/volume.h:159
1021pa_cvolume_init = _lib.pa_cvolume_init
1022pa_cvolume_init.restype = POINTER(pa_cvolume)
1023pa_cvolume_init.argtypes = [POINTER(pa_cvolume)]
1024
1025# /usr/include/pulse/volume.h:168
1026pa_cvolume_set = _lib.pa_cvolume_set
1027pa_cvolume_set.restype = POINTER(pa_cvolume)
1028pa_cvolume_set.argtypes = [POINTER(pa_cvolume), c_uint, pa_volume_t]
1029
1030PA_CVOLUME_SNPRINT_MAX = 320  # /usr/include/pulse/volume.h:175
1031# /usr/include/pulse/volume.h:178
1032pa_cvolume_snprint = _lib.pa_cvolume_snprint
1033pa_cvolume_snprint.restype = c_char_p
1034pa_cvolume_snprint.argtypes = [c_char_p, c_size_t, POINTER(pa_cvolume)]
1035
1036PA_SW_CVOLUME_SNPRINT_DB_MAX = 448  # /usr/include/pulse/volume.h:185
1037# /usr/include/pulse/volume.h:188
1038pa_sw_cvolume_snprint_dB = _lib.pa_sw_cvolume_snprint_dB
1039pa_sw_cvolume_snprint_dB.restype = c_char_p
1040pa_sw_cvolume_snprint_dB.argtypes = [c_char_p, c_size_t, POINTER(pa_cvolume)]
1041
1042PA_CVOLUME_SNPRINT_VERBOSE_MAX = 1984  # /usr/include/pulse/volume.h:194
1043# /usr/include/pulse/volume.h:200
1044# pa_cvolume_snprint_verbose = _lib.pa_cvolume_snprint_verbose
1045# pa_cvolume_snprint_verbose.restype = c_char_p
1046# pa_cvolume_snprint_verbose.argtypes = [c_char_p, c_size_t, POINTER(pa_cvolume), POINTER(pa_channel_map), c_int]
1047
1048PA_VOLUME_SNPRINT_MAX = 10  # /usr/include/pulse/volume.h:207
1049# /usr/include/pulse/volume.h:210
1050pa_volume_snprint = _lib.pa_volume_snprint
1051pa_volume_snprint.restype = c_char_p
1052pa_volume_snprint.argtypes = [c_char_p, c_size_t, pa_volume_t]
1053
1054PA_SW_VOLUME_SNPRINT_DB_MAX = 11  # /usr/include/pulse/volume.h:217
1055# /usr/include/pulse/volume.h:220
1056pa_sw_volume_snprint_dB = _lib.pa_sw_volume_snprint_dB
1057pa_sw_volume_snprint_dB.restype = c_char_p
1058pa_sw_volume_snprint_dB.argtypes = [c_char_p, c_size_t, pa_volume_t]
1059
1060PA_VOLUME_SNPRINT_VERBOSE_MAX = 35  # /usr/include/pulse/volume.h:226
1061# /usr/include/pulse/volume.h:231
1062# pa_volume_snprint_verbose = _lib.pa_volume_snprint_verbose
1063# pa_volume_snprint_verbose.restype = c_char_p
1064# pa_volume_snprint_verbose.argtypes = [c_char_p, c_size_t, pa_volume_t, c_int]
1065
1066# /usr/include/pulse/volume.h:234
1067pa_cvolume_avg = _lib.pa_cvolume_avg
1068pa_cvolume_avg.restype = pa_volume_t
1069pa_cvolume_avg.argtypes = [POINTER(pa_cvolume)]
1070
1071# /usr/include/pulse/volume.h:241
1072pa_cvolume_avg_mask = _lib.pa_cvolume_avg_mask
1073pa_cvolume_avg_mask.restype = pa_volume_t
1074pa_cvolume_avg_mask.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map), pa_channel_position_mask_t]
1075
1076# /usr/include/pulse/volume.h:244
1077pa_cvolume_max = _lib.pa_cvolume_max
1078pa_cvolume_max.restype = pa_volume_t
1079pa_cvolume_max.argtypes = [POINTER(pa_cvolume)]
1080
1081# /usr/include/pulse/volume.h:251
1082pa_cvolume_max_mask = _lib.pa_cvolume_max_mask
1083pa_cvolume_max_mask.restype = pa_volume_t
1084pa_cvolume_max_mask.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map), pa_channel_position_mask_t]
1085
1086# /usr/include/pulse/volume.h:254
1087pa_cvolume_min = _lib.pa_cvolume_min
1088pa_cvolume_min.restype = pa_volume_t
1089pa_cvolume_min.argtypes = [POINTER(pa_cvolume)]
1090
1091# /usr/include/pulse/volume.h:261
1092pa_cvolume_min_mask = _lib.pa_cvolume_min_mask
1093pa_cvolume_min_mask.restype = pa_volume_t
1094pa_cvolume_min_mask.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map), pa_channel_position_mask_t]
1095
1096# /usr/include/pulse/volume.h:264
1097pa_cvolume_valid = _lib.pa_cvolume_valid
1098pa_cvolume_valid.restype = c_int
1099pa_cvolume_valid.argtypes = [POINTER(pa_cvolume)]
1100
1101# /usr/include/pulse/volume.h:267
1102pa_cvolume_channels_equal_to = _lib.pa_cvolume_channels_equal_to
1103pa_cvolume_channels_equal_to.restype = c_int
1104pa_cvolume_channels_equal_to.argtypes = [POINTER(pa_cvolume), pa_volume_t]
1105
1106# /usr/include/pulse/volume.h:278
1107pa_sw_volume_multiply = _lib.pa_sw_volume_multiply
1108pa_sw_volume_multiply.restype = pa_volume_t
1109pa_sw_volume_multiply.argtypes = [pa_volume_t, pa_volume_t]
1110
1111# /usr/include/pulse/volume.h:283
1112pa_sw_cvolume_multiply = _lib.pa_sw_cvolume_multiply
1113pa_sw_cvolume_multiply.restype = POINTER(pa_cvolume)
1114pa_sw_cvolume_multiply.argtypes = [POINTER(pa_cvolume), POINTER(pa_cvolume), POINTER(pa_cvolume)]
1115
1116# /usr/include/pulse/volume.h:289
1117pa_sw_cvolume_multiply_scalar = _lib.pa_sw_cvolume_multiply_scalar
1118pa_sw_cvolume_multiply_scalar.restype = POINTER(pa_cvolume)
1119pa_sw_cvolume_multiply_scalar.argtypes = [POINTER(pa_cvolume), POINTER(pa_cvolume), pa_volume_t]
1120
1121# /usr/include/pulse/volume.h:295
1122pa_sw_volume_divide = _lib.pa_sw_volume_divide
1123pa_sw_volume_divide.restype = pa_volume_t
1124pa_sw_volume_divide.argtypes = [pa_volume_t, pa_volume_t]
1125
1126# /usr/include/pulse/volume.h:300
1127pa_sw_cvolume_divide = _lib.pa_sw_cvolume_divide
1128pa_sw_cvolume_divide.restype = POINTER(pa_cvolume)
1129pa_sw_cvolume_divide.argtypes = [POINTER(pa_cvolume), POINTER(pa_cvolume), POINTER(pa_cvolume)]
1130
1131# /usr/include/pulse/volume.h:306
1132pa_sw_cvolume_divide_scalar = _lib.pa_sw_cvolume_divide_scalar
1133pa_sw_cvolume_divide_scalar.restype = POINTER(pa_cvolume)
1134pa_sw_cvolume_divide_scalar.argtypes = [POINTER(pa_cvolume), POINTER(pa_cvolume), pa_volume_t]
1135
1136# /usr/include/pulse/volume.h:309
1137pa_sw_volume_from_dB = _lib.pa_sw_volume_from_dB
1138pa_sw_volume_from_dB.restype = pa_volume_t
1139pa_sw_volume_from_dB.argtypes = [c_double]
1140
1141# /usr/include/pulse/volume.h:312
1142pa_sw_volume_to_dB = _lib.pa_sw_volume_to_dB
1143pa_sw_volume_to_dB.restype = c_double
1144pa_sw_volume_to_dB.argtypes = [pa_volume_t]
1145
1146# /usr/include/pulse/volume.h:316
1147pa_sw_volume_from_linear = _lib.pa_sw_volume_from_linear
1148pa_sw_volume_from_linear.restype = pa_volume_t
1149pa_sw_volume_from_linear.argtypes = [c_double]
1150
1151# /usr/include/pulse/volume.h:319
1152pa_sw_volume_to_linear = _lib.pa_sw_volume_to_linear
1153pa_sw_volume_to_linear.restype = c_double
1154pa_sw_volume_to_linear.argtypes = [pa_volume_t]
1155
1156# /usr/include/pulse/volume.h:329
1157pa_cvolume_remap = _lib.pa_cvolume_remap
1158pa_cvolume_remap.restype = POINTER(pa_cvolume)
1159pa_cvolume_remap.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map), POINTER(pa_channel_map)]
1160
1161# /usr/include/pulse/volume.h:333
1162pa_cvolume_compatible = _lib.pa_cvolume_compatible
1163pa_cvolume_compatible.restype = c_int
1164pa_cvolume_compatible.argtypes = [POINTER(pa_cvolume), POINTER(pa_sample_spec)]
1165
1166# /usr/include/pulse/volume.h:337
1167pa_cvolume_compatible_with_channel_map = _lib.pa_cvolume_compatible_with_channel_map
1168pa_cvolume_compatible_with_channel_map.restype = c_int
1169pa_cvolume_compatible_with_channel_map.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map)]
1170
1171# /usr/include/pulse/volume.h:344
1172pa_cvolume_get_balance = _lib.pa_cvolume_get_balance
1173pa_cvolume_get_balance.restype = c_float
1174pa_cvolume_get_balance.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map)]
1175
1176# /usr/include/pulse/volume.h:355
1177pa_cvolume_set_balance = _lib.pa_cvolume_set_balance
1178pa_cvolume_set_balance.restype = POINTER(pa_cvolume)
1179pa_cvolume_set_balance.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map), c_float]
1180
1181# /usr/include/pulse/volume.h:362
1182pa_cvolume_get_fade = _lib.pa_cvolume_get_fade
1183pa_cvolume_get_fade.restype = c_float
1184pa_cvolume_get_fade.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map)]
1185
1186# /usr/include/pulse/volume.h:373
1187pa_cvolume_set_fade = _lib.pa_cvolume_set_fade
1188pa_cvolume_set_fade.restype = POINTER(pa_cvolume)
1189pa_cvolume_set_fade.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map), c_float]
1190
1191# /usr/include/pulse/volume.h:378
1192pa_cvolume_scale = _lib.pa_cvolume_scale
1193pa_cvolume_scale.restype = POINTER(pa_cvolume)
1194pa_cvolume_scale.argtypes = [POINTER(pa_cvolume), pa_volume_t]
1195
1196# /usr/include/pulse/volume.h:384
1197pa_cvolume_scale_mask = _lib.pa_cvolume_scale_mask
1198pa_cvolume_scale_mask.restype = POINTER(pa_cvolume)
1199pa_cvolume_scale_mask.argtypes = [POINTER(pa_cvolume), pa_volume_t, POINTER(pa_channel_map), pa_channel_position_mask_t]
1200
1201# /usr/include/pulse/volume.h:391
1202pa_cvolume_set_position = _lib.pa_cvolume_set_position
1203pa_cvolume_set_position.restype = POINTER(pa_cvolume)
1204pa_cvolume_set_position.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map), pa_channel_position_t, pa_volume_t]
1205
1206# /usr/include/pulse/volume.h:397
1207pa_cvolume_get_position = _lib.pa_cvolume_get_position
1208pa_cvolume_get_position.restype = pa_volume_t
1209pa_cvolume_get_position.argtypes = [POINTER(pa_cvolume), POINTER(pa_channel_map), pa_channel_position_t]
1210
1211# /usr/include/pulse/volume.h:402
1212pa_cvolume_merge = _lib.pa_cvolume_merge
1213pa_cvolume_merge.restype = POINTER(pa_cvolume)
1214pa_cvolume_merge.argtypes = [POINTER(pa_cvolume), POINTER(pa_cvolume), POINTER(pa_cvolume)]
1215
1216# /usr/include/pulse/volume.h:406
1217pa_cvolume_inc_clamp = _lib.pa_cvolume_inc_clamp
1218pa_cvolume_inc_clamp.restype = POINTER(pa_cvolume)
1219pa_cvolume_inc_clamp.argtypes = [POINTER(pa_cvolume), pa_volume_t, pa_volume_t]
1220
1221# /usr/include/pulse/volume.h:410
1222pa_cvolume_inc = _lib.pa_cvolume_inc
1223pa_cvolume_inc.restype = POINTER(pa_cvolume)
1224pa_cvolume_inc.argtypes = [POINTER(pa_cvolume), pa_volume_t]
1225
1226# /usr/include/pulse/volume.h:414
1227pa_cvolume_dec = _lib.pa_cvolume_dec
1228pa_cvolume_dec.restype = POINTER(pa_cvolume)
1229pa_cvolume_dec.argtypes = [POINTER(pa_cvolume), pa_volume_t]
1230
1231
1232class struct_pa_stream(Structure):
1233    __slots__ = [
1234    ]
1235
1236
1237struct_pa_stream._fields_ = [
1238    ('_opaque_struct', c_int)
1239]
1240
1241
1242class struct_pa_stream(Structure):
1243    __slots__ = [
1244    ]
1245
1246
1247struct_pa_stream._fields_ = [
1248    ('_opaque_struct', c_int)
1249]
1250
1251pa_stream = struct_pa_stream  # /usr/include/pulse/stream.h:335
1252pa_stream_success_cb_t = CFUNCTYPE(None, POINTER(pa_stream), c_int, POINTER(None))  # /usr/include/pulse/stream.h:338
1253pa_stream_request_cb_t = CFUNCTYPE(None, POINTER(pa_stream), c_size_t, POINTER(None))  # /usr/include/pulse/stream.h:341
1254pa_stream_notify_cb_t = CFUNCTYPE(None, POINTER(pa_stream), POINTER(None))  # /usr/include/pulse/stream.h:344
1255pa_stream_event_cb_t = CFUNCTYPE(None, POINTER(pa_stream), c_char_p, POINTER(pa_proplist),
1256                                 POINTER(None))  # /usr/include/pulse/stream.h:352
1257# /usr/include/pulse/stream.h:357
1258pa_stream_new = _lib.pa_stream_new
1259pa_stream_new.restype = POINTER(pa_stream)
1260pa_stream_new.argtypes = [POINTER(pa_context), c_char_p, POINTER(pa_sample_spec), POINTER(pa_channel_map)]
1261
1262# /usr/include/pulse/stream.h:366
1263pa_stream_new_with_proplist = _lib.pa_stream_new_with_proplist
1264pa_stream_new_with_proplist.restype = POINTER(pa_stream)
1265pa_stream_new_with_proplist.argtypes = [POINTER(pa_context), c_char_p, POINTER(pa_sample_spec), POINTER(pa_channel_map),
1266                                        POINTER(pa_proplist)]
1267
1268
1269class struct_pa_format_info(Structure):
1270    __slots__ = [
1271        'encoding',
1272        'plist',
1273    ]
1274
1275
1276enum_pa_encoding = c_int
1277PA_ENCODING_ANY = 0
1278PA_ENCODING_PCM = 1
1279PA_ENCODING_AC3_IEC61937 = 2
1280PA_ENCODING_EAC3_IEC61937 = 3
1281PA_ENCODING_MPEG_IEC61937 = 4
1282PA_ENCODING_DTS_IEC61937 = 5
1283PA_ENCODING_MPEG2_AAC_IEC61937 = 6
1284PA_ENCODING_MAX = 7
1285PA_ENCODING_INVALID = -1
1286pa_encoding_t = enum_pa_encoding  # /usr/include/pulse/format.h:64
1287struct_pa_format_info._fields_ = [
1288    ('encoding', pa_encoding_t),
1289    ('plist', POINTER(pa_proplist)),
1290]
1291
1292pa_format_info = struct_pa_format_info  # /usr/include/pulse/format.h:91
1293# /usr/include/pulse/stream.h:377
1294pa_stream_new_extended = _lib.pa_stream_new_extended
1295pa_stream_new_extended.restype = POINTER(pa_stream)
1296pa_stream_new_extended.argtypes = [POINTER(pa_context), c_char_p, POINTER(POINTER(pa_format_info)), c_uint,
1297                                   POINTER(pa_proplist)]
1298
1299# /usr/include/pulse/stream.h:385
1300pa_stream_unref = _lib.pa_stream_unref
1301pa_stream_unref.restype = None
1302pa_stream_unref.argtypes = [POINTER(pa_stream)]
1303
1304# /usr/include/pulse/stream.h:388
1305pa_stream_ref = _lib.pa_stream_ref
1306pa_stream_ref.restype = POINTER(pa_stream)
1307pa_stream_ref.argtypes = [POINTER(pa_stream)]
1308
1309# /usr/include/pulse/stream.h:391
1310pa_stream_get_state = _lib.pa_stream_get_state
1311pa_stream_get_state.restype = pa_stream_state_t
1312pa_stream_get_state.argtypes = [POINTER(pa_stream)]
1313
1314# /usr/include/pulse/stream.h:394
1315pa_stream_get_context = _lib.pa_stream_get_context
1316pa_stream_get_context.restype = POINTER(pa_context)
1317pa_stream_get_context.argtypes = [POINTER(pa_stream)]
1318
1319# /usr/include/pulse/stream.h:400
1320pa_stream_get_index = _lib.pa_stream_get_index
1321pa_stream_get_index.restype = c_uint32
1322pa_stream_get_index.argtypes = [POINTER(pa_stream)]
1323
1324# /usr/include/pulse/stream.h:411
1325pa_stream_get_device_index = _lib.pa_stream_get_device_index
1326pa_stream_get_device_index.restype = c_uint32
1327pa_stream_get_device_index.argtypes = [POINTER(pa_stream)]
1328
1329# /usr/include/pulse/stream.h:422
1330pa_stream_get_device_name = _lib.pa_stream_get_device_name
1331pa_stream_get_device_name.restype = c_char_p
1332pa_stream_get_device_name.argtypes = [POINTER(pa_stream)]
1333
1334# /usr/include/pulse/stream.h:428
1335pa_stream_is_suspended = _lib.pa_stream_is_suspended
1336pa_stream_is_suspended.restype = c_int
1337pa_stream_is_suspended.argtypes = [POINTER(pa_stream)]
1338
1339# /usr/include/pulse/stream.h:432
1340pa_stream_is_corked = _lib.pa_stream_is_corked
1341pa_stream_is_corked.restype = c_int
1342pa_stream_is_corked.argtypes = [POINTER(pa_stream)]
1343
1344# /usr/include/pulse/stream.h:458
1345pa_stream_connect_playback = _lib.pa_stream_connect_playback
1346pa_stream_connect_playback.restype = c_int
1347pa_stream_connect_playback.argtypes = [POINTER(pa_stream), c_char_p, POINTER(pa_buffer_attr), pa_stream_flags_t,
1348                                       POINTER(pa_cvolume), POINTER(pa_stream)]
1349
1350# /usr/include/pulse/stream.h:467
1351pa_stream_connect_record = _lib.pa_stream_connect_record
1352pa_stream_connect_record.restype = c_int
1353pa_stream_connect_record.argtypes = [POINTER(pa_stream), c_char_p, POINTER(pa_buffer_attr), pa_stream_flags_t]
1354
1355# /usr/include/pulse/stream.h:474
1356pa_stream_disconnect = _lib.pa_stream_disconnect
1357pa_stream_disconnect.restype = c_int
1358pa_stream_disconnect.argtypes = [POINTER(pa_stream)]
1359
1360# /usr/include/pulse/stream.h:508
1361pa_stream_begin_write = _lib.pa_stream_begin_write
1362pa_stream_begin_write.restype = c_int
1363pa_stream_begin_write.argtypes = [POINTER(pa_stream), POINTER(POINTER(None)), POINTER(c_size_t)]
1364
1365# /usr/include/pulse/stream.h:522
1366pa_stream_cancel_write = _lib.pa_stream_cancel_write
1367pa_stream_cancel_write.restype = c_int
1368pa_stream_cancel_write.argtypes = [POINTER(pa_stream)]
1369
1370# /usr/include/pulse/stream.h:547
1371pa_stream_write = _lib.pa_stream_write
1372pa_stream_write.restype = c_int
1373pa_stream_write.argtypes = [POINTER(pa_stream), POINTER(None), c_size_t, pa_free_cb_t, c_int64, pa_seek_mode_t]
1374
1375# /usr/include/pulse/stream.h:557
1376# pa_stream_write_ext_free = _lib.pa_stream_write_ext_free
1377# pa_stream_write_ext_free.restype = c_int
1378# pa_stream_write_ext_free.argtypes = [POINTER(pa_stream), POINTER(None), c_size_t, pa_free_cb_t, POINTER(None), c_int64, pa_seek_mode_t]
1379
1380# /usr/include/pulse/stream.h:582
1381pa_stream_peek = _lib.pa_stream_peek
1382pa_stream_peek.restype = c_int
1383pa_stream_peek.argtypes = [POINTER(pa_stream), POINTER(POINTER(None)), POINTER(c_size_t)]
1384
1385# /usr/include/pulse/stream.h:589
1386pa_stream_drop = _lib.pa_stream_drop
1387pa_stream_drop.restype = c_int
1388pa_stream_drop.argtypes = [POINTER(pa_stream)]
1389
1390# /usr/include/pulse/stream.h:592
1391pa_stream_writable_size = _lib.pa_stream_writable_size
1392pa_stream_writable_size.restype = c_size_t
1393pa_stream_writable_size.argtypes = [POINTER(pa_stream)]
1394
1395# /usr/include/pulse/stream.h:595
1396pa_stream_readable_size = _lib.pa_stream_readable_size
1397pa_stream_readable_size.restype = c_size_t
1398pa_stream_readable_size.argtypes = [POINTER(pa_stream)]
1399
1400# /usr/include/pulse/stream.h:601
1401pa_stream_drain = _lib.pa_stream_drain
1402pa_stream_drain.restype = POINTER(pa_operation)
1403pa_stream_drain.argtypes = [POINTER(pa_stream), pa_stream_success_cb_t, POINTER(None)]
1404
1405# /usr/include/pulse/stream.h:607
1406pa_stream_update_timing_info = _lib.pa_stream_update_timing_info
1407pa_stream_update_timing_info.restype = POINTER(pa_operation)
1408pa_stream_update_timing_info.argtypes = [POINTER(pa_stream), pa_stream_success_cb_t, POINTER(None)]
1409
1410# /usr/include/pulse/stream.h:610
1411pa_stream_set_state_callback = _lib.pa_stream_set_state_callback
1412pa_stream_set_state_callback.restype = None
1413pa_stream_set_state_callback.argtypes = [POINTER(pa_stream), pa_stream_notify_cb_t, POINTER(None)]
1414
1415# /usr/include/pulse/stream.h:614
1416pa_stream_set_write_callback = _lib.pa_stream_set_write_callback
1417pa_stream_set_write_callback.restype = None
1418pa_stream_set_write_callback.argtypes = [POINTER(pa_stream), pa_stream_request_cb_t, POINTER(None)]
1419
1420# /usr/include/pulse/stream.h:617
1421pa_stream_set_read_callback = _lib.pa_stream_set_read_callback
1422pa_stream_set_read_callback.restype = None
1423pa_stream_set_read_callback.argtypes = [POINTER(pa_stream), pa_stream_request_cb_t, POINTER(None)]
1424
1425# /usr/include/pulse/stream.h:620
1426pa_stream_set_overflow_callback = _lib.pa_stream_set_overflow_callback
1427pa_stream_set_overflow_callback.restype = None
1428pa_stream_set_overflow_callback.argtypes = [POINTER(pa_stream), pa_stream_notify_cb_t, POINTER(None)]
1429
1430# /usr/include/pulse/stream.h:626
1431pa_stream_get_underflow_index = _lib.pa_stream_get_underflow_index
1432pa_stream_get_underflow_index.restype = c_int64
1433pa_stream_get_underflow_index.argtypes = [POINTER(pa_stream)]
1434
1435# /usr/include/pulse/stream.h:629
1436pa_stream_set_underflow_callback = _lib.pa_stream_set_underflow_callback
1437pa_stream_set_underflow_callback.restype = None
1438pa_stream_set_underflow_callback.argtypes = [POINTER(pa_stream), pa_stream_notify_cb_t, POINTER(None)]
1439
1440# /usr/include/pulse/stream.h:636
1441pa_stream_set_started_callback = _lib.pa_stream_set_started_callback
1442pa_stream_set_started_callback.restype = None
1443pa_stream_set_started_callback.argtypes = [POINTER(pa_stream), pa_stream_notify_cb_t, POINTER(None)]
1444
1445# /usr/include/pulse/stream.h:641
1446pa_stream_set_latency_update_callback = _lib.pa_stream_set_latency_update_callback
1447pa_stream_set_latency_update_callback.restype = None
1448pa_stream_set_latency_update_callback.argtypes = [POINTER(pa_stream), pa_stream_notify_cb_t, POINTER(None)]
1449
1450# /usr/include/pulse/stream.h:648
1451pa_stream_set_moved_callback = _lib.pa_stream_set_moved_callback
1452pa_stream_set_moved_callback.restype = None
1453pa_stream_set_moved_callback.argtypes = [POINTER(pa_stream), pa_stream_notify_cb_t, POINTER(None)]
1454
1455# /usr/include/pulse/stream.h:658
1456pa_stream_set_suspended_callback = _lib.pa_stream_set_suspended_callback
1457pa_stream_set_suspended_callback.restype = None
1458pa_stream_set_suspended_callback.argtypes = [POINTER(pa_stream), pa_stream_notify_cb_t, POINTER(None)]
1459
1460# /usr/include/pulse/stream.h:662
1461pa_stream_set_event_callback = _lib.pa_stream_set_event_callback
1462pa_stream_set_event_callback.restype = None
1463pa_stream_set_event_callback.argtypes = [POINTER(pa_stream), pa_stream_event_cb_t, POINTER(None)]
1464
1465# /usr/include/pulse/stream.h:669
1466pa_stream_set_buffer_attr_callback = _lib.pa_stream_set_buffer_attr_callback
1467pa_stream_set_buffer_attr_callback.restype = None
1468pa_stream_set_buffer_attr_callback.argtypes = [POINTER(pa_stream), pa_stream_notify_cb_t, POINTER(None)]
1469
1470# /usr/include/pulse/stream.h:681
1471pa_stream_cork = _lib.pa_stream_cork
1472pa_stream_cork.restype = POINTER(pa_operation)
1473pa_stream_cork.argtypes = [POINTER(pa_stream), c_int, pa_stream_success_cb_t, POINTER(None)]
1474
1475# /usr/include/pulse/stream.h:686
1476pa_stream_flush = _lib.pa_stream_flush
1477pa_stream_flush.restype = POINTER(pa_operation)
1478pa_stream_flush.argtypes = [POINTER(pa_stream), pa_stream_success_cb_t, POINTER(None)]
1479
1480# /usr/include/pulse/stream.h:690
1481pa_stream_prebuf = _lib.pa_stream_prebuf
1482pa_stream_prebuf.restype = POINTER(pa_operation)
1483pa_stream_prebuf.argtypes = [POINTER(pa_stream), pa_stream_success_cb_t, POINTER(None)]
1484
1485# /usr/include/pulse/stream.h:695
1486pa_stream_trigger = _lib.pa_stream_trigger
1487pa_stream_trigger.restype = POINTER(pa_operation)
1488pa_stream_trigger.argtypes = [POINTER(pa_stream), pa_stream_success_cb_t, POINTER(None)]
1489
1490# /usr/include/pulse/stream.h:698
1491pa_stream_set_name = _lib.pa_stream_set_name
1492pa_stream_set_name.restype = POINTER(pa_operation)
1493pa_stream_set_name.argtypes = [POINTER(pa_stream), c_char_p, pa_stream_success_cb_t, POINTER(None)]
1494
1495# /usr/include/pulse/stream.h:731
1496pa_stream_get_time = _lib.pa_stream_get_time
1497pa_stream_get_time.restype = c_int
1498pa_stream_get_time.argtypes = [POINTER(pa_stream), POINTER(pa_usec_t)]
1499
1500# /usr/include/pulse/stream.h:745
1501pa_stream_get_latency = _lib.pa_stream_get_latency
1502pa_stream_get_latency.restype = c_int
1503pa_stream_get_latency.argtypes = [POINTER(pa_stream), POINTER(pa_usec_t), POINTER(c_int)]
1504
1505# /usr/include/pulse/stream.h:761
1506pa_stream_get_timing_info = _lib.pa_stream_get_timing_info
1507pa_stream_get_timing_info.restype = POINTER(pa_timing_info)
1508pa_stream_get_timing_info.argtypes = [POINTER(pa_stream)]
1509
1510# /usr/include/pulse/stream.h:764
1511pa_stream_get_sample_spec = _lib.pa_stream_get_sample_spec
1512pa_stream_get_sample_spec.restype = POINTER(pa_sample_spec)
1513pa_stream_get_sample_spec.argtypes = [POINTER(pa_stream)]
1514
1515# /usr/include/pulse/stream.h:767
1516pa_stream_get_channel_map = _lib.pa_stream_get_channel_map
1517pa_stream_get_channel_map.restype = POINTER(pa_channel_map)
1518pa_stream_get_channel_map.argtypes = [POINTER(pa_stream)]
1519
1520# /usr/include/pulse/stream.h:770
1521pa_stream_get_format_info = _lib.pa_stream_get_format_info
1522pa_stream_get_format_info.restype = POINTER(pa_format_info)
1523pa_stream_get_format_info.argtypes = [POINTER(pa_stream)]
1524
1525# /usr/include/pulse/stream.h:780
1526pa_stream_get_buffer_attr = _lib.pa_stream_get_buffer_attr
1527pa_stream_get_buffer_attr.restype = POINTER(pa_buffer_attr)
1528pa_stream_get_buffer_attr.argtypes = [POINTER(pa_stream)]
1529
1530# /usr/include/pulse/stream.h:790
1531pa_stream_set_buffer_attr = _lib.pa_stream_set_buffer_attr
1532pa_stream_set_buffer_attr.restype = POINTER(pa_operation)
1533pa_stream_set_buffer_attr.argtypes = [POINTER(pa_stream), POINTER(pa_buffer_attr), pa_stream_success_cb_t,
1534                                      POINTER(None)]
1535
1536# /usr/include/pulse/stream.h:797
1537pa_stream_update_sample_rate = _lib.pa_stream_update_sample_rate
1538pa_stream_update_sample_rate.restype = POINTER(pa_operation)
1539pa_stream_update_sample_rate.argtypes = [POINTER(pa_stream), c_uint32, pa_stream_success_cb_t, POINTER(None)]
1540
1541# /usr/include/pulse/stream.h:805
1542pa_stream_proplist_update = _lib.pa_stream_proplist_update
1543pa_stream_proplist_update.restype = POINTER(pa_operation)
1544pa_stream_proplist_update.argtypes = [POINTER(pa_stream), pa_update_mode_t, POINTER(pa_proplist),
1545                                      pa_stream_success_cb_t, POINTER(None)]
1546
1547# /usr/include/pulse/stream.h:809
1548pa_stream_proplist_remove = _lib.pa_stream_proplist_remove
1549pa_stream_proplist_remove.restype = POINTER(pa_operation)
1550pa_stream_proplist_remove.argtypes = [POINTER(pa_stream), POINTER(c_char_p), pa_stream_success_cb_t, POINTER(None)]
1551
1552# /usr/include/pulse/stream.h:815
1553pa_stream_set_monitor_stream = _lib.pa_stream_set_monitor_stream
1554pa_stream_set_monitor_stream.restype = c_int
1555pa_stream_set_monitor_stream.argtypes = [POINTER(pa_stream), c_uint32]
1556
1557# /usr/include/pulse/stream.h:820
1558pa_stream_get_monitor_stream = _lib.pa_stream_get_monitor_stream
1559pa_stream_get_monitor_stream.restype = c_uint32
1560pa_stream_get_monitor_stream.argtypes = [POINTER(pa_stream)]
1561
1562
1563class struct_pa_sink_port_info(Structure):
1564    __slots__ = [
1565        'name',
1566        'description',
1567        'priority',
1568        'available',
1569    ]
1570
1571
1572struct_pa_sink_port_info._fields_ = [
1573    ('name', c_char_p),
1574    ('description', c_char_p),
1575    ('priority', c_uint32),
1576    ('available', c_int),
1577]
1578
1579pa_sink_port_info = struct_pa_sink_port_info  # /usr/include/pulse/introspect.h:232
1580
1581
1582class struct_pa_sink_info(Structure):
1583    __slots__ = [
1584        'name',
1585        'index',
1586        'description',
1587        'sample_spec',
1588        'channel_map',
1589        'owner_module',
1590        'volume',
1591        'mute',
1592        'monitor_source',
1593        'monitor_source_name',
1594        'latency',
1595        'driver',
1596        'flags',
1597        'proplist',
1598        'configured_latency',
1599        'base_volume',
1600        'state',
1601        'n_volume_steps',
1602        'card',
1603        'n_ports',
1604        'ports',
1605        'active_port',
1606        'n_formats',
1607        'formats',
1608    ]
1609
1610
1611struct_pa_sink_info._fields_ = [
1612    ('name', c_char_p),
1613    ('index', c_uint32),
1614    ('description', c_char_p),
1615    ('sample_spec', pa_sample_spec),
1616    ('channel_map', pa_channel_map),
1617    ('owner_module', c_uint32),
1618    ('volume', pa_cvolume),
1619    ('mute', c_int),
1620    ('monitor_source', c_uint32),
1621    ('monitor_source_name', c_char_p),
1622    ('latency', pa_usec_t),
1623    ('driver', c_char_p),
1624    ('flags', pa_sink_flags_t),
1625    ('proplist', POINTER(pa_proplist)),
1626    ('configured_latency', pa_usec_t),
1627    ('base_volume', pa_volume_t),
1628    ('state', pa_sink_state_t),
1629    ('n_volume_steps', c_uint32),
1630    ('card', c_uint32),
1631    ('n_ports', c_uint32),
1632    ('ports', POINTER(POINTER(pa_sink_port_info))),
1633    ('active_port', POINTER(pa_sink_port_info)),
1634    ('n_formats', c_uint8),
1635    ('formats', POINTER(POINTER(pa_format_info))),
1636]
1637
1638pa_sink_info = struct_pa_sink_info  # /usr/include/pulse/introspect.h:262
1639pa_sink_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_sink_info), c_int,
1640                              POINTER(None))  # /usr/include/pulse/introspect.h:265
1641# /usr/include/pulse/introspect.h:268
1642pa_context_get_sink_info_by_name = _lib.pa_context_get_sink_info_by_name
1643pa_context_get_sink_info_by_name.restype = POINTER(pa_operation)
1644pa_context_get_sink_info_by_name.argtypes = [POINTER(pa_context), c_char_p, pa_sink_info_cb_t, POINTER(None)]
1645
1646# /usr/include/pulse/introspect.h:271
1647pa_context_get_sink_info_by_index = _lib.pa_context_get_sink_info_by_index
1648pa_context_get_sink_info_by_index.restype = POINTER(pa_operation)
1649pa_context_get_sink_info_by_index.argtypes = [POINTER(pa_context), c_uint32, pa_sink_info_cb_t, POINTER(None)]
1650
1651# /usr/include/pulse/introspect.h:274
1652pa_context_get_sink_info_list = _lib.pa_context_get_sink_info_list
1653pa_context_get_sink_info_list.restype = POINTER(pa_operation)
1654pa_context_get_sink_info_list.argtypes = [POINTER(pa_context), pa_sink_info_cb_t, POINTER(None)]
1655
1656# /usr/include/pulse/introspect.h:277
1657pa_context_set_sink_volume_by_index = _lib.pa_context_set_sink_volume_by_index
1658pa_context_set_sink_volume_by_index.restype = POINTER(pa_operation)
1659pa_context_set_sink_volume_by_index.argtypes = [POINTER(pa_context), c_uint32, POINTER(pa_cvolume),
1660                                                pa_context_success_cb_t, POINTER(None)]
1661
1662# /usr/include/pulse/introspect.h:280
1663pa_context_set_sink_volume_by_name = _lib.pa_context_set_sink_volume_by_name
1664pa_context_set_sink_volume_by_name.restype = POINTER(pa_operation)
1665pa_context_set_sink_volume_by_name.argtypes = [POINTER(pa_context), c_char_p, POINTER(pa_cvolume),
1666                                               pa_context_success_cb_t, POINTER(None)]
1667
1668# /usr/include/pulse/introspect.h:283
1669pa_context_set_sink_mute_by_index = _lib.pa_context_set_sink_mute_by_index
1670pa_context_set_sink_mute_by_index.restype = POINTER(pa_operation)
1671pa_context_set_sink_mute_by_index.argtypes = [POINTER(pa_context), c_uint32, c_int, pa_context_success_cb_t,
1672                                              POINTER(None)]
1673
1674# /usr/include/pulse/introspect.h:286
1675pa_context_set_sink_mute_by_name = _lib.pa_context_set_sink_mute_by_name
1676pa_context_set_sink_mute_by_name.restype = POINTER(pa_operation)
1677pa_context_set_sink_mute_by_name.argtypes = [POINTER(pa_context), c_char_p, c_int, pa_context_success_cb_t,
1678                                             POINTER(None)]
1679
1680# /usr/include/pulse/introspect.h:289
1681pa_context_suspend_sink_by_name = _lib.pa_context_suspend_sink_by_name
1682pa_context_suspend_sink_by_name.restype = POINTER(pa_operation)
1683pa_context_suspend_sink_by_name.argtypes = [POINTER(pa_context), c_char_p, c_int, pa_context_success_cb_t,
1684                                            POINTER(None)]
1685
1686# /usr/include/pulse/introspect.h:292
1687pa_context_suspend_sink_by_index = _lib.pa_context_suspend_sink_by_index
1688pa_context_suspend_sink_by_index.restype = POINTER(pa_operation)
1689pa_context_suspend_sink_by_index.argtypes = [POINTER(pa_context), c_uint32, c_int, pa_context_success_cb_t,
1690                                             POINTER(None)]
1691
1692# /usr/include/pulse/introspect.h:295
1693pa_context_set_sink_port_by_index = _lib.pa_context_set_sink_port_by_index
1694pa_context_set_sink_port_by_index.restype = POINTER(pa_operation)
1695pa_context_set_sink_port_by_index.argtypes = [POINTER(pa_context), c_uint32, c_char_p, pa_context_success_cb_t,
1696                                              POINTER(None)]
1697
1698# /usr/include/pulse/introspect.h:298
1699pa_context_set_sink_port_by_name = _lib.pa_context_set_sink_port_by_name
1700pa_context_set_sink_port_by_name.restype = POINTER(pa_operation)
1701pa_context_set_sink_port_by_name.argtypes = [POINTER(pa_context), c_char_p, c_char_p, pa_context_success_cb_t,
1702                                             POINTER(None)]
1703
1704
1705class struct_pa_source_port_info(Structure):
1706    __slots__ = [
1707        'name',
1708        'description',
1709        'priority',
1710        'available',
1711    ]
1712
1713
1714struct_pa_source_port_info._fields_ = [
1715    ('name', c_char_p),
1716    ('description', c_char_p),
1717    ('priority', c_uint32),
1718    ('available', c_int),
1719]
1720
1721pa_source_port_info = struct_pa_source_port_info  # /usr/include/pulse/introspect.h:312
1722
1723
1724class struct_pa_source_info(Structure):
1725    __slots__ = [
1726        'name',
1727        'index',
1728        'description',
1729        'sample_spec',
1730        'channel_map',
1731        'owner_module',
1732        'volume',
1733        'mute',
1734        'monitor_of_sink',
1735        'monitor_of_sink_name',
1736        'latency',
1737        'driver',
1738        'flags',
1739        'proplist',
1740        'configured_latency',
1741        'base_volume',
1742        'state',
1743        'n_volume_steps',
1744        'card',
1745        'n_ports',
1746        'ports',
1747        'active_port',
1748        'n_formats',
1749        'formats',
1750    ]
1751
1752
1753struct_pa_source_info._fields_ = [
1754    ('name', c_char_p),
1755    ('index', c_uint32),
1756    ('description', c_char_p),
1757    ('sample_spec', pa_sample_spec),
1758    ('channel_map', pa_channel_map),
1759    ('owner_module', c_uint32),
1760    ('volume', pa_cvolume),
1761    ('mute', c_int),
1762    ('monitor_of_sink', c_uint32),
1763    ('monitor_of_sink_name', c_char_p),
1764    ('latency', pa_usec_t),
1765    ('driver', c_char_p),
1766    ('flags', pa_source_flags_t),
1767    ('proplist', POINTER(pa_proplist)),
1768    ('configured_latency', pa_usec_t),
1769    ('base_volume', pa_volume_t),
1770    ('state', pa_source_state_t),
1771    ('n_volume_steps', c_uint32),
1772    ('card', c_uint32),
1773    ('n_ports', c_uint32),
1774    ('ports', POINTER(POINTER(pa_source_port_info))),
1775    ('active_port', POINTER(pa_source_port_info)),
1776    ('n_formats', c_uint8),
1777    ('formats', POINTER(POINTER(pa_format_info))),
1778]
1779
1780pa_source_info = struct_pa_source_info  # /usr/include/pulse/introspect.h:342
1781pa_source_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_source_info), c_int,
1782                                POINTER(None))  # /usr/include/pulse/introspect.h:345
1783# /usr/include/pulse/introspect.h:348
1784pa_context_get_source_info_by_name = _lib.pa_context_get_source_info_by_name
1785pa_context_get_source_info_by_name.restype = POINTER(pa_operation)
1786pa_context_get_source_info_by_name.argtypes = [POINTER(pa_context), c_char_p, pa_source_info_cb_t, POINTER(None)]
1787
1788# /usr/include/pulse/introspect.h:351
1789pa_context_get_source_info_by_index = _lib.pa_context_get_source_info_by_index
1790pa_context_get_source_info_by_index.restype = POINTER(pa_operation)
1791pa_context_get_source_info_by_index.argtypes = [POINTER(pa_context), c_uint32, pa_source_info_cb_t, POINTER(None)]
1792
1793# /usr/include/pulse/introspect.h:354
1794pa_context_get_source_info_list = _lib.pa_context_get_source_info_list
1795pa_context_get_source_info_list.restype = POINTER(pa_operation)
1796pa_context_get_source_info_list.argtypes = [POINTER(pa_context), pa_source_info_cb_t, POINTER(None)]
1797
1798# /usr/include/pulse/introspect.h:357
1799pa_context_set_source_volume_by_index = _lib.pa_context_set_source_volume_by_index
1800pa_context_set_source_volume_by_index.restype = POINTER(pa_operation)
1801pa_context_set_source_volume_by_index.argtypes = [POINTER(pa_context), c_uint32, POINTER(pa_cvolume),
1802                                                  pa_context_success_cb_t, POINTER(None)]
1803
1804# /usr/include/pulse/introspect.h:360
1805pa_context_set_source_volume_by_name = _lib.pa_context_set_source_volume_by_name
1806pa_context_set_source_volume_by_name.restype = POINTER(pa_operation)
1807pa_context_set_source_volume_by_name.argtypes = [POINTER(pa_context), c_char_p, POINTER(pa_cvolume),
1808                                                 pa_context_success_cb_t, POINTER(None)]
1809
1810# /usr/include/pulse/introspect.h:363
1811pa_context_set_source_mute_by_index = _lib.pa_context_set_source_mute_by_index
1812pa_context_set_source_mute_by_index.restype = POINTER(pa_operation)
1813pa_context_set_source_mute_by_index.argtypes = [POINTER(pa_context), c_uint32, c_int, pa_context_success_cb_t,
1814                                                POINTER(None)]
1815
1816# /usr/include/pulse/introspect.h:366
1817pa_context_set_source_mute_by_name = _lib.pa_context_set_source_mute_by_name
1818pa_context_set_source_mute_by_name.restype = POINTER(pa_operation)
1819pa_context_set_source_mute_by_name.argtypes = [POINTER(pa_context), c_char_p, c_int, pa_context_success_cb_t,
1820                                               POINTER(None)]
1821
1822# /usr/include/pulse/introspect.h:369
1823pa_context_suspend_source_by_name = _lib.pa_context_suspend_source_by_name
1824pa_context_suspend_source_by_name.restype = POINTER(pa_operation)
1825pa_context_suspend_source_by_name.argtypes = [POINTER(pa_context), c_char_p, c_int, pa_context_success_cb_t,
1826                                              POINTER(None)]
1827
1828# /usr/include/pulse/introspect.h:372
1829pa_context_suspend_source_by_index = _lib.pa_context_suspend_source_by_index
1830pa_context_suspend_source_by_index.restype = POINTER(pa_operation)
1831pa_context_suspend_source_by_index.argtypes = [POINTER(pa_context), c_uint32, c_int, pa_context_success_cb_t,
1832                                               POINTER(None)]
1833
1834# /usr/include/pulse/introspect.h:375
1835pa_context_set_source_port_by_index = _lib.pa_context_set_source_port_by_index
1836pa_context_set_source_port_by_index.restype = POINTER(pa_operation)
1837pa_context_set_source_port_by_index.argtypes = [POINTER(pa_context), c_uint32, c_char_p, pa_context_success_cb_t,
1838                                                POINTER(None)]
1839
1840# /usr/include/pulse/introspect.h:378
1841pa_context_set_source_port_by_name = _lib.pa_context_set_source_port_by_name
1842pa_context_set_source_port_by_name.restype = POINTER(pa_operation)
1843pa_context_set_source_port_by_name.argtypes = [POINTER(pa_context), c_char_p, c_char_p, pa_context_success_cb_t,
1844                                               POINTER(None)]
1845
1846
1847class struct_pa_server_info(Structure):
1848    __slots__ = [
1849        'user_name',
1850        'host_name',
1851        'server_version',
1852        'server_name',
1853        'sample_spec',
1854        'default_sink_name',
1855        'default_source_name',
1856        'cookie',
1857        'channel_map',
1858    ]
1859
1860
1861struct_pa_server_info._fields_ = [
1862    ('user_name', c_char_p),
1863    ('host_name', c_char_p),
1864    ('server_version', c_char_p),
1865    ('server_name', c_char_p),
1866    ('sample_spec', pa_sample_spec),
1867    ('default_sink_name', c_char_p),
1868    ('default_source_name', c_char_p),
1869    ('cookie', c_uint32),
1870    ('channel_map', pa_channel_map),
1871]
1872
1873pa_server_info = struct_pa_server_info  # /usr/include/pulse/introspect.h:397
1874pa_server_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_server_info),
1875                                POINTER(None))  # /usr/include/pulse/introspect.h:400
1876# /usr/include/pulse/introspect.h:403
1877pa_context_get_server_info = _lib.pa_context_get_server_info
1878pa_context_get_server_info.restype = POINTER(pa_operation)
1879pa_context_get_server_info.argtypes = [POINTER(pa_context), pa_server_info_cb_t, POINTER(None)]
1880
1881
1882class struct_pa_module_info(Structure):
1883    __slots__ = [
1884        'index',
1885        'name',
1886        'argument',
1887        'n_used',
1888        'auto_unload',
1889        'proplist',
1890    ]
1891
1892
1893struct_pa_module_info._fields_ = [
1894    ('index', c_uint32),
1895    ('name', c_char_p),
1896    ('argument', c_char_p),
1897    ('n_used', c_uint32),
1898    ('auto_unload', c_int),
1899    ('proplist', POINTER(pa_proplist)),
1900]
1901
1902pa_module_info = struct_pa_module_info  # /usr/include/pulse/introspect.h:421
1903pa_module_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_module_info), c_int,
1904                                POINTER(None))  # /usr/include/pulse/introspect.h:424
1905# /usr/include/pulse/introspect.h:427
1906pa_context_get_module_info = _lib.pa_context_get_module_info
1907pa_context_get_module_info.restype = POINTER(pa_operation)
1908pa_context_get_module_info.argtypes = [POINTER(pa_context), c_uint32, pa_module_info_cb_t, POINTER(None)]
1909
1910# /usr/include/pulse/introspect.h:430
1911pa_context_get_module_info_list = _lib.pa_context_get_module_info_list
1912pa_context_get_module_info_list.restype = POINTER(pa_operation)
1913pa_context_get_module_info_list.argtypes = [POINTER(pa_context), pa_module_info_cb_t, POINTER(None)]
1914
1915pa_context_index_cb_t = CFUNCTYPE(None, POINTER(pa_context), c_uint32,
1916                                  POINTER(None))  # /usr/include/pulse/introspect.h:433
1917# /usr/include/pulse/introspect.h:436
1918pa_context_load_module = _lib.pa_context_load_module
1919pa_context_load_module.restype = POINTER(pa_operation)
1920pa_context_load_module.argtypes = [POINTER(pa_context), c_char_p, c_char_p, pa_context_index_cb_t, POINTER(None)]
1921
1922# /usr/include/pulse/introspect.h:439
1923pa_context_unload_module = _lib.pa_context_unload_module
1924pa_context_unload_module.restype = POINTER(pa_operation)
1925pa_context_unload_module.argtypes = [POINTER(pa_context), c_uint32, pa_context_success_cb_t, POINTER(None)]
1926
1927
1928class struct_pa_client_info(Structure):
1929    __slots__ = [
1930        'index',
1931        'name',
1932        'owner_module',
1933        'driver',
1934        'proplist',
1935    ]
1936
1937
1938struct_pa_client_info._fields_ = [
1939    ('index', c_uint32),
1940    ('name', c_char_p),
1941    ('owner_module', c_uint32),
1942    ('driver', c_char_p),
1943    ('proplist', POINTER(pa_proplist)),
1944]
1945
1946pa_client_info = struct_pa_client_info  # /usr/include/pulse/introspect.h:454
1947pa_client_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_client_info), c_int,
1948                                POINTER(None))  # /usr/include/pulse/introspect.h:457
1949# /usr/include/pulse/introspect.h:460
1950pa_context_get_client_info = _lib.pa_context_get_client_info
1951pa_context_get_client_info.restype = POINTER(pa_operation)
1952pa_context_get_client_info.argtypes = [POINTER(pa_context), c_uint32, pa_client_info_cb_t, POINTER(None)]
1953
1954# /usr/include/pulse/introspect.h:463
1955pa_context_get_client_info_list = _lib.pa_context_get_client_info_list
1956pa_context_get_client_info_list.restype = POINTER(pa_operation)
1957pa_context_get_client_info_list.argtypes = [POINTER(pa_context), pa_client_info_cb_t, POINTER(None)]
1958
1959# /usr/include/pulse/introspect.h:466
1960pa_context_kill_client = _lib.pa_context_kill_client
1961pa_context_kill_client.restype = POINTER(pa_operation)
1962pa_context_kill_client.argtypes = [POINTER(pa_context), c_uint32, pa_context_success_cb_t, POINTER(None)]
1963
1964
1965class struct_pa_card_profile_info(Structure):
1966    __slots__ = [
1967        'name',
1968        'description',
1969        'n_sinks',
1970        'n_sources',
1971        'priority',
1972    ]
1973
1974
1975struct_pa_card_profile_info._fields_ = [
1976    ('name', c_char_p),
1977    ('description', c_char_p),
1978    ('n_sinks', c_uint32),
1979    ('n_sources', c_uint32),
1980    ('priority', c_uint32),
1981]
1982
1983pa_card_profile_info = struct_pa_card_profile_info  # /usr/include/pulse/introspect.h:479
1984
1985
1986class struct_pa_card_profile_info2(Structure):
1987    __slots__ = [
1988        'name',
1989        'description',
1990        'n_sinks',
1991        'n_sources',
1992        'priority',
1993        'available',
1994    ]
1995
1996
1997struct_pa_card_profile_info2._fields_ = [
1998    ('name', c_char_p),
1999    ('description', c_char_p),
2000    ('n_sinks', c_uint32),
2001    ('n_sources', c_uint32),
2002    ('priority', c_uint32),
2003    ('available', c_int),
2004]
2005
2006pa_card_profile_info2 = struct_pa_card_profile_info2  # /usr/include/pulse/introspect.h:496
2007
2008
2009class struct_pa_card_port_info(Structure):
2010    __slots__ = [
2011        'name',
2012        'description',
2013        'priority',
2014        'available',
2015        'direction',
2016        'n_profiles',
2017        'profiles',
2018        'proplist',
2019        'latency_offset',
2020        'profiles2',
2021    ]
2022
2023
2024struct_pa_card_port_info._fields_ = [
2025    ('name', c_char_p),
2026    ('description', c_char_p),
2027    ('priority', c_uint32),
2028    ('available', c_int),
2029    ('direction', c_int),
2030    ('n_profiles', c_uint32),
2031    ('profiles', POINTER(POINTER(pa_card_profile_info))),
2032    ('proplist', POINTER(pa_proplist)),
2033    ('latency_offset', c_int64),
2034    ('profiles2', POINTER(POINTER(pa_card_profile_info2))),
2035]
2036
2037pa_card_port_info = struct_pa_card_port_info  # /usr/include/pulse/introspect.h:512
2038
2039
2040class struct_pa_card_info(Structure):
2041    __slots__ = [
2042        'index',
2043        'name',
2044        'owner_module',
2045        'driver',
2046        'n_profiles',
2047        'profiles',
2048        'active_profile',
2049        'proplist',
2050        'n_ports',
2051        'ports',
2052        'profiles2',
2053        'active_profile2',
2054    ]
2055
2056
2057struct_pa_card_info._fields_ = [
2058    ('index', c_uint32),
2059    ('name', c_char_p),
2060    ('owner_module', c_uint32),
2061    ('driver', c_char_p),
2062    ('n_profiles', c_uint32),
2063    ('profiles', POINTER(pa_card_profile_info)),
2064    ('active_profile', POINTER(pa_card_profile_info)),
2065    ('proplist', POINTER(pa_proplist)),
2066    ('n_ports', c_uint32),
2067    ('ports', POINTER(POINTER(pa_card_port_info))),
2068    ('profiles2', POINTER(POINTER(pa_card_profile_info2))),
2069    ('active_profile2', POINTER(pa_card_profile_info2)),
2070]
2071
2072pa_card_info = struct_pa_card_info  # /usr/include/pulse/introspect.h:530
2073pa_card_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_card_info), c_int,
2074                              POINTER(None))  # /usr/include/pulse/introspect.h:533
2075# /usr/include/pulse/introspect.h:536
2076pa_context_get_card_info_by_index = _lib.pa_context_get_card_info_by_index
2077pa_context_get_card_info_by_index.restype = POINTER(pa_operation)
2078pa_context_get_card_info_by_index.argtypes = [POINTER(pa_context), c_uint32, pa_card_info_cb_t, POINTER(None)]
2079
2080# /usr/include/pulse/introspect.h:539
2081pa_context_get_card_info_by_name = _lib.pa_context_get_card_info_by_name
2082pa_context_get_card_info_by_name.restype = POINTER(pa_operation)
2083pa_context_get_card_info_by_name.argtypes = [POINTER(pa_context), c_char_p, pa_card_info_cb_t, POINTER(None)]
2084
2085# /usr/include/pulse/introspect.h:542
2086pa_context_get_card_info_list = _lib.pa_context_get_card_info_list
2087pa_context_get_card_info_list.restype = POINTER(pa_operation)
2088pa_context_get_card_info_list.argtypes = [POINTER(pa_context), pa_card_info_cb_t, POINTER(None)]
2089
2090# /usr/include/pulse/introspect.h:545
2091pa_context_set_card_profile_by_index = _lib.pa_context_set_card_profile_by_index
2092pa_context_set_card_profile_by_index.restype = POINTER(pa_operation)
2093pa_context_set_card_profile_by_index.argtypes = [POINTER(pa_context), c_uint32, c_char_p, pa_context_success_cb_t,
2094                                                 POINTER(None)]
2095
2096# /usr/include/pulse/introspect.h:548
2097pa_context_set_card_profile_by_name = _lib.pa_context_set_card_profile_by_name
2098pa_context_set_card_profile_by_name.restype = POINTER(pa_operation)
2099pa_context_set_card_profile_by_name.argtypes = [POINTER(pa_context), c_char_p, c_char_p, pa_context_success_cb_t,
2100                                                POINTER(None)]
2101
2102# /usr/include/pulse/introspect.h:551
2103pa_context_set_port_latency_offset = _lib.pa_context_set_port_latency_offset
2104pa_context_set_port_latency_offset.restype = POINTER(pa_operation)
2105pa_context_set_port_latency_offset.argtypes = [POINTER(pa_context), c_char_p, c_char_p, c_int64,
2106                                               pa_context_success_cb_t, POINTER(None)]
2107
2108
2109class struct_pa_sink_input_info(Structure):
2110    __slots__ = [
2111        'index',
2112        'name',
2113        'owner_module',
2114        'client',
2115        'sink',
2116        'sample_spec',
2117        'channel_map',
2118        'volume',
2119        'buffer_usec',
2120        'sink_usec',
2121        'resample_method',
2122        'driver',
2123        'mute',
2124        'proplist',
2125        'corked',
2126        'has_volume',
2127        'volume_writable',
2128        'format',
2129    ]
2130
2131
2132struct_pa_sink_input_info._fields_ = [
2133    ('index', c_uint32),
2134    ('name', c_char_p),
2135    ('owner_module', c_uint32),
2136    ('client', c_uint32),
2137    ('sink', c_uint32),
2138    ('sample_spec', pa_sample_spec),
2139    ('channel_map', pa_channel_map),
2140    ('volume', pa_cvolume),
2141    ('buffer_usec', pa_usec_t),
2142    ('sink_usec', pa_usec_t),
2143    ('resample_method', c_char_p),
2144    ('driver', c_char_p),
2145    ('mute', c_int),
2146    ('proplist', POINTER(pa_proplist)),
2147    ('corked', c_int),
2148    ('has_volume', c_int),
2149    ('volume_writable', c_int),
2150    ('format', POINTER(pa_format_info)),
2151]
2152
2153pa_sink_input_info = struct_pa_sink_input_info  # /usr/include/pulse/introspect.h:579
2154pa_sink_input_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_sink_input_info), c_int,
2155                                    POINTER(None))  # /usr/include/pulse/introspect.h:582
2156# /usr/include/pulse/introspect.h:585
2157pa_context_get_sink_input_info = _lib.pa_context_get_sink_input_info
2158pa_context_get_sink_input_info.restype = POINTER(pa_operation)
2159pa_context_get_sink_input_info.argtypes = [POINTER(pa_context), c_uint32, pa_sink_input_info_cb_t, POINTER(None)]
2160
2161# /usr/include/pulse/introspect.h:588
2162pa_context_get_sink_input_info_list = _lib.pa_context_get_sink_input_info_list
2163pa_context_get_sink_input_info_list.restype = POINTER(pa_operation)
2164pa_context_get_sink_input_info_list.argtypes = [POINTER(pa_context), pa_sink_input_info_cb_t, POINTER(None)]
2165
2166# /usr/include/pulse/introspect.h:591
2167pa_context_move_sink_input_by_name = _lib.pa_context_move_sink_input_by_name
2168pa_context_move_sink_input_by_name.restype = POINTER(pa_operation)
2169pa_context_move_sink_input_by_name.argtypes = [POINTER(pa_context), c_uint32, c_char_p, pa_context_success_cb_t,
2170                                               POINTER(None)]
2171
2172# /usr/include/pulse/introspect.h:594
2173pa_context_move_sink_input_by_index = _lib.pa_context_move_sink_input_by_index
2174pa_context_move_sink_input_by_index.restype = POINTER(pa_operation)
2175pa_context_move_sink_input_by_index.argtypes = [POINTER(pa_context), c_uint32, c_uint32, pa_context_success_cb_t,
2176                                                POINTER(None)]
2177
2178# /usr/include/pulse/introspect.h:597
2179pa_context_set_sink_input_volume = _lib.pa_context_set_sink_input_volume
2180pa_context_set_sink_input_volume.restype = POINTER(pa_operation)
2181pa_context_set_sink_input_volume.argtypes = [POINTER(pa_context), c_uint32, POINTER(pa_cvolume),
2182                                             pa_context_success_cb_t, POINTER(None)]
2183
2184# /usr/include/pulse/introspect.h:600
2185pa_context_set_sink_input_mute = _lib.pa_context_set_sink_input_mute
2186pa_context_set_sink_input_mute.restype = POINTER(pa_operation)
2187pa_context_set_sink_input_mute.argtypes = [POINTER(pa_context), c_uint32, c_int, pa_context_success_cb_t, POINTER(None)]
2188
2189# /usr/include/pulse/introspect.h:603
2190pa_context_kill_sink_input = _lib.pa_context_kill_sink_input
2191pa_context_kill_sink_input.restype = POINTER(pa_operation)
2192pa_context_kill_sink_input.argtypes = [POINTER(pa_context), c_uint32, pa_context_success_cb_t, POINTER(None)]
2193
2194
2195class struct_pa_source_output_info(Structure):
2196    __slots__ = [
2197        'index',
2198        'name',
2199        'owner_module',
2200        'client',
2201        'source',
2202        'sample_spec',
2203        'channel_map',
2204        'buffer_usec',
2205        'source_usec',
2206        'resample_method',
2207        'driver',
2208        'proplist',
2209        'corked',
2210        'volume',
2211        'mute',
2212        'has_volume',
2213        'volume_writable',
2214        'format',
2215    ]
2216
2217
2218struct_pa_source_output_info._fields_ = [
2219    ('index', c_uint32),
2220    ('name', c_char_p),
2221    ('owner_module', c_uint32),
2222    ('client', c_uint32),
2223    ('source', c_uint32),
2224    ('sample_spec', pa_sample_spec),
2225    ('channel_map', pa_channel_map),
2226    ('buffer_usec', pa_usec_t),
2227    ('source_usec', pa_usec_t),
2228    ('resample_method', c_char_p),
2229    ('driver', c_char_p),
2230    ('proplist', POINTER(pa_proplist)),
2231    ('corked', c_int),
2232    ('volume', pa_cvolume),
2233    ('mute', c_int),
2234    ('has_volume', c_int),
2235    ('volume_writable', c_int),
2236    ('format', POINTER(pa_format_info)),
2237]
2238
2239pa_source_output_info = struct_pa_source_output_info  # /usr/include/pulse/introspect.h:631
2240pa_source_output_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_source_output_info), c_int,
2241                                       POINTER(None))  # /usr/include/pulse/introspect.h:634
2242# /usr/include/pulse/introspect.h:637
2243pa_context_get_source_output_info = _lib.pa_context_get_source_output_info
2244pa_context_get_source_output_info.restype = POINTER(pa_operation)
2245pa_context_get_source_output_info.argtypes = [POINTER(pa_context), c_uint32, pa_source_output_info_cb_t, POINTER(None)]
2246
2247# /usr/include/pulse/introspect.h:640
2248pa_context_get_source_output_info_list = _lib.pa_context_get_source_output_info_list
2249pa_context_get_source_output_info_list.restype = POINTER(pa_operation)
2250pa_context_get_source_output_info_list.argtypes = [POINTER(pa_context), pa_source_output_info_cb_t, POINTER(None)]
2251
2252# /usr/include/pulse/introspect.h:643
2253pa_context_move_source_output_by_name = _lib.pa_context_move_source_output_by_name
2254pa_context_move_source_output_by_name.restype = POINTER(pa_operation)
2255pa_context_move_source_output_by_name.argtypes = [POINTER(pa_context), c_uint32, c_char_p, pa_context_success_cb_t,
2256                                                  POINTER(None)]
2257
2258# /usr/include/pulse/introspect.h:646
2259pa_context_move_source_output_by_index = _lib.pa_context_move_source_output_by_index
2260pa_context_move_source_output_by_index.restype = POINTER(pa_operation)
2261pa_context_move_source_output_by_index.argtypes = [POINTER(pa_context), c_uint32, c_uint32, pa_context_success_cb_t,
2262                                                   POINTER(None)]
2263
2264# /usr/include/pulse/introspect.h:649
2265pa_context_set_source_output_volume = _lib.pa_context_set_source_output_volume
2266pa_context_set_source_output_volume.restype = POINTER(pa_operation)
2267pa_context_set_source_output_volume.argtypes = [POINTER(pa_context), c_uint32, POINTER(pa_cvolume),
2268                                                pa_context_success_cb_t, POINTER(None)]
2269
2270# /usr/include/pulse/introspect.h:652
2271pa_context_set_source_output_mute = _lib.pa_context_set_source_output_mute
2272pa_context_set_source_output_mute.restype = POINTER(pa_operation)
2273pa_context_set_source_output_mute.argtypes = [POINTER(pa_context), c_uint32, c_int, pa_context_success_cb_t,
2274                                              POINTER(None)]
2275
2276# /usr/include/pulse/introspect.h:655
2277pa_context_kill_source_output = _lib.pa_context_kill_source_output
2278pa_context_kill_source_output.restype = POINTER(pa_operation)
2279pa_context_kill_source_output.argtypes = [POINTER(pa_context), c_uint32, pa_context_success_cb_t, POINTER(None)]
2280
2281
2282class struct_pa_stat_info(Structure):
2283    __slots__ = [
2284        'memblock_total',
2285        'memblock_total_size',
2286        'memblock_allocated',
2287        'memblock_allocated_size',
2288        'scache_size',
2289    ]
2290
2291
2292struct_pa_stat_info._fields_ = [
2293    ('memblock_total', c_uint32),
2294    ('memblock_total_size', c_uint32),
2295    ('memblock_allocated', c_uint32),
2296    ('memblock_allocated_size', c_uint32),
2297    ('scache_size', c_uint32),
2298]
2299
2300pa_stat_info = struct_pa_stat_info  # /usr/include/pulse/introspect.h:670
2301pa_stat_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_stat_info),
2302                              POINTER(None))  # /usr/include/pulse/introspect.h:673
2303# /usr/include/pulse/introspect.h:676
2304pa_context_stat = _lib.pa_context_stat
2305pa_context_stat.restype = POINTER(pa_operation)
2306pa_context_stat.argtypes = [POINTER(pa_context), pa_stat_info_cb_t, POINTER(None)]
2307
2308
2309class struct_pa_sample_info(Structure):
2310    __slots__ = [
2311        'index',
2312        'name',
2313        'volume',
2314        'sample_spec',
2315        'channel_map',
2316        'duration',
2317        'bytes',
2318        'lazy',
2319        'filename',
2320        'proplist',
2321    ]
2322
2323
2324struct_pa_sample_info._fields_ = [
2325    ('index', c_uint32),
2326    ('name', c_char_p),
2327    ('volume', pa_cvolume),
2328    ('sample_spec', pa_sample_spec),
2329    ('channel_map', pa_channel_map),
2330    ('duration', pa_usec_t),
2331    ('bytes', c_uint32),
2332    ('lazy', c_int),
2333    ('filename', c_char_p),
2334    ('proplist', POINTER(pa_proplist)),
2335]
2336
2337pa_sample_info = struct_pa_sample_info  # /usr/include/pulse/introspect.h:696
2338pa_sample_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_sample_info), c_int,
2339                                POINTER(None))  # /usr/include/pulse/introspect.h:699
2340# /usr/include/pulse/introspect.h:702
2341pa_context_get_sample_info_by_name = _lib.pa_context_get_sample_info_by_name
2342pa_context_get_sample_info_by_name.restype = POINTER(pa_operation)
2343pa_context_get_sample_info_by_name.argtypes = [POINTER(pa_context), c_char_p, pa_sample_info_cb_t, POINTER(None)]
2344
2345# /usr/include/pulse/introspect.h:705
2346pa_context_get_sample_info_by_index = _lib.pa_context_get_sample_info_by_index
2347pa_context_get_sample_info_by_index.restype = POINTER(pa_operation)
2348pa_context_get_sample_info_by_index.argtypes = [POINTER(pa_context), c_uint32, pa_sample_info_cb_t, POINTER(None)]
2349
2350# /usr/include/pulse/introspect.h:708
2351pa_context_get_sample_info_list = _lib.pa_context_get_sample_info_list
2352pa_context_get_sample_info_list.restype = POINTER(pa_operation)
2353pa_context_get_sample_info_list.argtypes = [POINTER(pa_context), pa_sample_info_cb_t, POINTER(None)]
2354
2355enum_pa_autoload_type = c_int
2356PA_AUTOLOAD_SINK = 0
2357PA_AUTOLOAD_SOURCE = 1
2358pa_autoload_type_t = enum_pa_autoload_type  # /usr/include/pulse/introspect.h:720
2359
2360
2361class struct_pa_autoload_info(Structure):
2362    __slots__ = [
2363        'index',
2364        'name',
2365        'type',
2366        'module',
2367        'argument',
2368    ]
2369
2370
2371struct_pa_autoload_info._fields_ = [
2372    ('index', c_uint32),
2373    ('name', c_char_p),
2374    ('type', pa_autoload_type_t),
2375    ('module', c_char_p),
2376    ('argument', c_char_p),
2377]
2378
2379pa_autoload_info = struct_pa_autoload_info  # /usr/include/pulse/introspect.h:731
2380pa_autoload_info_cb_t = CFUNCTYPE(None, POINTER(pa_context), POINTER(pa_autoload_info), c_int,
2381                                  POINTER(None))  # /usr/include/pulse/introspect.h:734
2382# /usr/include/pulse/introspect.h:737
2383pa_context_get_autoload_info_by_name = _lib.pa_context_get_autoload_info_by_name
2384pa_context_get_autoload_info_by_name.restype = POINTER(pa_operation)
2385pa_context_get_autoload_info_by_name.argtypes = [POINTER(pa_context), c_char_p, pa_autoload_type_t,
2386                                                 pa_autoload_info_cb_t, POINTER(None)]
2387
2388# /usr/include/pulse/introspect.h:740
2389pa_context_get_autoload_info_by_index = _lib.pa_context_get_autoload_info_by_index
2390pa_context_get_autoload_info_by_index.restype = POINTER(pa_operation)
2391pa_context_get_autoload_info_by_index.argtypes = [POINTER(pa_context), c_uint32, pa_autoload_info_cb_t, POINTER(None)]
2392
2393# /usr/include/pulse/introspect.h:743
2394pa_context_get_autoload_info_list = _lib.pa_context_get_autoload_info_list
2395pa_context_get_autoload_info_list.restype = POINTER(pa_operation)
2396pa_context_get_autoload_info_list.argtypes = [POINTER(pa_context), pa_autoload_info_cb_t, POINTER(None)]
2397
2398# /usr/include/pulse/introspect.h:746
2399pa_context_add_autoload = _lib.pa_context_add_autoload
2400pa_context_add_autoload.restype = POINTER(pa_operation)
2401pa_context_add_autoload.argtypes = [POINTER(pa_context), c_char_p, pa_autoload_type_t, c_char_p, c_char_p,
2402                                    pa_context_index_cb_t, POINTER(None)]
2403
2404# /usr/include/pulse/introspect.h:749
2405pa_context_remove_autoload_by_name = _lib.pa_context_remove_autoload_by_name
2406pa_context_remove_autoload_by_name.restype = POINTER(pa_operation)
2407pa_context_remove_autoload_by_name.argtypes = [POINTER(pa_context), c_char_p, pa_autoload_type_t,
2408                                               pa_context_success_cb_t, POINTER(None)]
2409
2410# /usr/include/pulse/introspect.h:752
2411pa_context_remove_autoload_by_index = _lib.pa_context_remove_autoload_by_index
2412pa_context_remove_autoload_by_index.restype = POINTER(pa_operation)
2413pa_context_remove_autoload_by_index.argtypes = [POINTER(pa_context), c_uint32, pa_context_success_cb_t, POINTER(None)]
2414
2415pa_context_subscribe_cb_t = CFUNCTYPE(None, POINTER(pa_context), pa_subscription_event_type_t, c_uint32,
2416                                      POINTER(None))  # /usr/include/pulse/subscribe.h:73
2417# /usr/include/pulse/subscribe.h:76
2418pa_context_subscribe = _lib.pa_context_subscribe
2419pa_context_subscribe.restype = POINTER(pa_operation)
2420pa_context_subscribe.argtypes = [POINTER(pa_context), pa_subscription_mask_t, pa_context_success_cb_t, POINTER(None)]
2421
2422# /usr/include/pulse/subscribe.h:79
2423pa_context_set_subscribe_callback = _lib.pa_context_set_subscribe_callback
2424pa_context_set_subscribe_callback.restype = None
2425pa_context_set_subscribe_callback.argtypes = [POINTER(pa_context), pa_context_subscribe_cb_t, POINTER(None)]
2426
2427pa_context_play_sample_cb_t = CFUNCTYPE(None, POINTER(pa_context), c_uint32,
2428                                        POINTER(None))  # /usr/include/pulse/scache.h:85
2429# /usr/include/pulse/scache.h:88
2430pa_stream_connect_upload = _lib.pa_stream_connect_upload
2431pa_stream_connect_upload.restype = c_int
2432pa_stream_connect_upload.argtypes = [POINTER(pa_stream), c_size_t]
2433
2434# /usr/include/pulse/scache.h:93
2435pa_stream_finish_upload = _lib.pa_stream_finish_upload
2436pa_stream_finish_upload.restype = c_int
2437pa_stream_finish_upload.argtypes = [POINTER(pa_stream)]
2438
2439# /usr/include/pulse/scache.h:96
2440pa_context_remove_sample = _lib.pa_context_remove_sample
2441pa_context_remove_sample.restype = POINTER(pa_operation)
2442pa_context_remove_sample.argtypes = [POINTER(pa_context), c_char_p, pa_context_success_cb_t, POINTER(None)]
2443
2444# /usr/include/pulse/scache.h:101
2445pa_context_play_sample = _lib.pa_context_play_sample
2446pa_context_play_sample.restype = POINTER(pa_operation)
2447pa_context_play_sample.argtypes = [POINTER(pa_context), c_char_p, c_char_p, pa_volume_t, pa_context_success_cb_t,
2448                                   POINTER(None)]
2449
2450# /usr/include/pulse/scache.h:113
2451pa_context_play_sample_with_proplist = _lib.pa_context_play_sample_with_proplist
2452pa_context_play_sample_with_proplist.restype = POINTER(pa_operation)
2453pa_context_play_sample_with_proplist.argtypes = [POINTER(pa_context), c_char_p, c_char_p, pa_volume_t,
2454                                                 POINTER(pa_proplist), pa_context_play_sample_cb_t, POINTER(None)]
2455
2456# /usr/include/pulse/error.h:33
2457pa_strerror = _lib.pa_strerror
2458pa_strerror.restype = c_char_p
2459pa_strerror.argtypes = [c_int]
2460
2461# /usr/include/pulse/xmalloc.h:39
2462pa_xmalloc = _lib.pa_xmalloc
2463pa_xmalloc.restype = POINTER(c_void)
2464pa_xmalloc.argtypes = [c_size_t]
2465
2466# /usr/include/pulse/xmalloc.h:42
2467pa_xmalloc0 = _lib.pa_xmalloc0
2468pa_xmalloc0.restype = POINTER(c_void)
2469pa_xmalloc0.argtypes = [c_size_t]
2470
2471# /usr/include/pulse/xmalloc.h:45
2472pa_xrealloc = _lib.pa_xrealloc
2473pa_xrealloc.restype = POINTER(c_void)
2474pa_xrealloc.argtypes = [POINTER(None), c_size_t]
2475
2476# /usr/include/pulse/xmalloc.h:48
2477pa_xfree = _lib.pa_xfree
2478pa_xfree.restype = None
2479pa_xfree.argtypes = [POINTER(None)]
2480
2481# /usr/include/pulse/xmalloc.h:51
2482pa_xstrdup = _lib.pa_xstrdup
2483pa_xstrdup.restype = c_char_p
2484pa_xstrdup.argtypes = [c_char_p]
2485
2486# /usr/include/pulse/xmalloc.h:54
2487pa_xstrndup = _lib.pa_xstrndup
2488pa_xstrndup.restype = c_char_p
2489pa_xstrndup.argtypes = [c_char_p, c_size_t]
2490
2491# /usr/include/pulse/xmalloc.h:57
2492pa_xmemdup = _lib.pa_xmemdup
2493pa_xmemdup.restype = POINTER(c_void)
2494pa_xmemdup.argtypes = [POINTER(None), c_size_t]
2495
2496# /usr/include/pulse/utf8.h:35
2497pa_utf8_valid = _lib.pa_utf8_valid
2498pa_utf8_valid.restype = c_char_p
2499pa_utf8_valid.argtypes = [c_char_p]
2500
2501# /usr/include/pulse/utf8.h:38
2502pa_ascii_valid = _lib.pa_ascii_valid
2503pa_ascii_valid.restype = c_char_p
2504pa_ascii_valid.argtypes = [c_char_p]
2505
2506# /usr/include/pulse/utf8.h:41
2507pa_utf8_filter = _lib.pa_utf8_filter
2508pa_utf8_filter.restype = c_char_p
2509pa_utf8_filter.argtypes = [c_char_p]
2510
2511# /usr/include/pulse/utf8.h:44
2512pa_ascii_filter = _lib.pa_ascii_filter
2513pa_ascii_filter.restype = c_char_p
2514pa_ascii_filter.argtypes = [c_char_p]
2515
2516# /usr/include/pulse/utf8.h:47
2517pa_utf8_to_locale = _lib.pa_utf8_to_locale
2518pa_utf8_to_locale.restype = c_char_p
2519pa_utf8_to_locale.argtypes = [c_char_p]
2520
2521# /usr/include/pulse/utf8.h:50
2522pa_locale_to_utf8 = _lib.pa_locale_to_utf8
2523pa_locale_to_utf8.restype = c_char_p
2524pa_locale_to_utf8.argtypes = [c_char_p]
2525
2526
2527class struct_pa_threaded_mainloop(Structure):
2528    __slots__ = [
2529    ]
2530
2531
2532struct_pa_threaded_mainloop._fields_ = [
2533    ('_opaque_struct', c_int)
2534]
2535
2536
2537class struct_pa_threaded_mainloop(Structure):
2538    __slots__ = [
2539    ]
2540
2541
2542struct_pa_threaded_mainloop._fields_ = [
2543    ('_opaque_struct', c_int)
2544]
2545
2546pa_threaded_mainloop = struct_pa_threaded_mainloop  # /usr/include/pulse/thread-mainloop.h:246
2547# /usr/include/pulse/thread-mainloop.h:251
2548pa_threaded_mainloop_new = _lib.pa_threaded_mainloop_new
2549pa_threaded_mainloop_new.restype = POINTER(pa_threaded_mainloop)
2550pa_threaded_mainloop_new.argtypes = []
2551
2552# /usr/include/pulse/thread-mainloop.h:256
2553pa_threaded_mainloop_free = _lib.pa_threaded_mainloop_free
2554pa_threaded_mainloop_free.restype = None
2555pa_threaded_mainloop_free.argtypes = [POINTER(pa_threaded_mainloop)]
2556
2557# /usr/include/pulse/thread-mainloop.h:259
2558pa_threaded_mainloop_start = _lib.pa_threaded_mainloop_start
2559pa_threaded_mainloop_start.restype = c_int
2560pa_threaded_mainloop_start.argtypes = [POINTER(pa_threaded_mainloop)]
2561
2562# /usr/include/pulse/thread-mainloop.h:263
2563pa_threaded_mainloop_stop = _lib.pa_threaded_mainloop_stop
2564pa_threaded_mainloop_stop.restype = None
2565pa_threaded_mainloop_stop.argtypes = [POINTER(pa_threaded_mainloop)]
2566
2567# /usr/include/pulse/thread-mainloop.h:271
2568pa_threaded_mainloop_lock = _lib.pa_threaded_mainloop_lock
2569pa_threaded_mainloop_lock.restype = None
2570pa_threaded_mainloop_lock.argtypes = [POINTER(pa_threaded_mainloop)]
2571
2572# /usr/include/pulse/thread-mainloop.h:274
2573pa_threaded_mainloop_unlock = _lib.pa_threaded_mainloop_unlock
2574pa_threaded_mainloop_unlock.restype = None
2575pa_threaded_mainloop_unlock.argtypes = [POINTER(pa_threaded_mainloop)]
2576
2577# /usr/include/pulse/thread-mainloop.h:285
2578pa_threaded_mainloop_wait = _lib.pa_threaded_mainloop_wait
2579pa_threaded_mainloop_wait.restype = None
2580pa_threaded_mainloop_wait.argtypes = [POINTER(pa_threaded_mainloop)]
2581
2582# /usr/include/pulse/thread-mainloop.h:292
2583pa_threaded_mainloop_signal = _lib.pa_threaded_mainloop_signal
2584pa_threaded_mainloop_signal.restype = None
2585pa_threaded_mainloop_signal.argtypes = [POINTER(pa_threaded_mainloop), c_int]
2586
2587# /usr/include/pulse/thread-mainloop.h:298
2588pa_threaded_mainloop_accept = _lib.pa_threaded_mainloop_accept
2589pa_threaded_mainloop_accept.restype = None
2590pa_threaded_mainloop_accept.argtypes = [POINTER(pa_threaded_mainloop)]
2591
2592# /usr/include/pulse/thread-mainloop.h:302
2593pa_threaded_mainloop_get_retval = _lib.pa_threaded_mainloop_get_retval
2594pa_threaded_mainloop_get_retval.restype = c_int
2595pa_threaded_mainloop_get_retval.argtypes = [POINTER(pa_threaded_mainloop)]
2596
2597# /usr/include/pulse/thread-mainloop.h:307
2598pa_threaded_mainloop_get_api = _lib.pa_threaded_mainloop_get_api
2599pa_threaded_mainloop_get_api.restype = POINTER(pa_mainloop_api)
2600pa_threaded_mainloop_get_api.argtypes = [POINTER(pa_threaded_mainloop)]
2601
2602# /usr/include/pulse/thread-mainloop.h:310
2603pa_threaded_mainloop_in_thread = _lib.pa_threaded_mainloop_in_thread
2604pa_threaded_mainloop_in_thread.restype = c_int
2605pa_threaded_mainloop_in_thread.argtypes = [POINTER(pa_threaded_mainloop)]
2606
2607
2608# /usr/include/pulse/thread-mainloop.h:313
2609# pa_threaded_mainloop_set_name = _lib.pa_threaded_mainloop_set_name
2610# pa_threaded_mainloop_set_name.restype = None
2611# pa_threaded_mainloop_set_name.argtypes = [POINTER(pa_threaded_mainloop), c_char_p]
2612
2613class struct_pa_mainloop(Structure):
2614    __slots__ = [
2615    ]
2616
2617
2618struct_pa_mainloop._fields_ = [
2619    ('_opaque_struct', c_int)
2620]
2621
2622
2623class struct_pa_mainloop(Structure):
2624    __slots__ = [
2625    ]
2626
2627
2628struct_pa_mainloop._fields_ = [
2629    ('_opaque_struct', c_int)
2630]
2631
2632pa_mainloop = struct_pa_mainloop  # /usr/include/pulse/mainloop.h:78
2633# /usr/include/pulse/mainloop.h:81
2634pa_mainloop_new = _lib.pa_mainloop_new
2635pa_mainloop_new.restype = POINTER(pa_mainloop)
2636pa_mainloop_new.argtypes = []
2637
2638# /usr/include/pulse/mainloop.h:84
2639pa_mainloop_free = _lib.pa_mainloop_free
2640pa_mainloop_free.restype = None
2641pa_mainloop_free.argtypes = [POINTER(pa_mainloop)]
2642
2643# /usr/include/pulse/mainloop.h:89
2644pa_mainloop_prepare = _lib.pa_mainloop_prepare
2645pa_mainloop_prepare.restype = c_int
2646pa_mainloop_prepare.argtypes = [POINTER(pa_mainloop), c_int]
2647
2648# /usr/include/pulse/mainloop.h:92
2649pa_mainloop_poll = _lib.pa_mainloop_poll
2650pa_mainloop_poll.restype = c_int
2651pa_mainloop_poll.argtypes = [POINTER(pa_mainloop)]
2652
2653# /usr/include/pulse/mainloop.h:96
2654pa_mainloop_dispatch = _lib.pa_mainloop_dispatch
2655pa_mainloop_dispatch.restype = c_int
2656pa_mainloop_dispatch.argtypes = [POINTER(pa_mainloop)]
2657
2658# /usr/include/pulse/mainloop.h:99
2659pa_mainloop_get_retval = _lib.pa_mainloop_get_retval
2660pa_mainloop_get_retval.restype = c_int
2661pa_mainloop_get_retval.argtypes = [POINTER(pa_mainloop)]
2662
2663# /usr/include/pulse/mainloop.h:107
2664pa_mainloop_iterate = _lib.pa_mainloop_iterate
2665pa_mainloop_iterate.restype = c_int
2666pa_mainloop_iterate.argtypes = [POINTER(pa_mainloop), c_int, POINTER(c_int)]
2667
2668# /usr/include/pulse/mainloop.h:110
2669pa_mainloop_run = _lib.pa_mainloop_run
2670pa_mainloop_run.restype = c_int
2671pa_mainloop_run.argtypes = [POINTER(pa_mainloop), POINTER(c_int)]
2672
2673# /usr/include/pulse/mainloop.h:115
2674pa_mainloop_get_api = _lib.pa_mainloop_get_api
2675pa_mainloop_get_api.restype = POINTER(pa_mainloop_api)
2676pa_mainloop_get_api.argtypes = [POINTER(pa_mainloop)]
2677
2678# /usr/include/pulse/mainloop.h:118
2679pa_mainloop_quit = _lib.pa_mainloop_quit
2680pa_mainloop_quit.restype = None
2681pa_mainloop_quit.argtypes = [POINTER(pa_mainloop), c_int]
2682
2683# /usr/include/pulse/mainloop.h:121
2684pa_mainloop_wakeup = _lib.pa_mainloop_wakeup
2685pa_mainloop_wakeup.restype = None
2686pa_mainloop_wakeup.argtypes = [POINTER(pa_mainloop)]
2687
2688
2689class struct_pollfd(Structure):
2690    __slots__ = [
2691    ]
2692
2693
2694struct_pollfd._fields_ = [
2695    ('_opaque_struct', c_int)
2696]
2697
2698
2699class struct_pollfd(Structure):
2700    __slots__ = [
2701    ]
2702
2703
2704struct_pollfd._fields_ = [
2705    ('_opaque_struct', c_int)
2706]
2707
2708pa_poll_func = CFUNCTYPE(c_int, POINTER(struct_pollfd), c_ulong, c_int,
2709                         POINTER(None))  # /usr/include/pulse/mainloop.h:124
2710# /usr/include/pulse/mainloop.h:127
2711pa_mainloop_set_poll_func = _lib.pa_mainloop_set_poll_func
2712pa_mainloop_set_poll_func.restype = None
2713pa_mainloop_set_poll_func.argtypes = [POINTER(pa_mainloop), pa_poll_func, POINTER(None)]
2714
2715
2716class struct_pa_signal_event(Structure):
2717    __slots__ = [
2718    ]
2719
2720
2721struct_pa_signal_event._fields_ = [
2722    ('_opaque_struct', c_int)
2723]
2724
2725
2726class struct_pa_signal_event(Structure):
2727    __slots__ = [
2728    ]
2729
2730
2731struct_pa_signal_event._fields_ = [
2732    ('_opaque_struct', c_int)
2733]
2734
2735pa_signal_event = struct_pa_signal_event  # /usr/include/pulse/mainloop-signal.h:39
2736pa_signal_cb_t = CFUNCTYPE(None, POINTER(pa_mainloop_api), POINTER(pa_signal_event), c_int,
2737                           POINTER(None))  # /usr/include/pulse/mainloop-signal.h:42
2738pa_signal_destroy_cb_t = CFUNCTYPE(None, POINTER(pa_mainloop_api), POINTER(pa_signal_event),
2739                                   POINTER(None))  # /usr/include/pulse/mainloop-signal.h:45
2740# /usr/include/pulse/mainloop-signal.h:48
2741pa_signal_init = _lib.pa_signal_init
2742pa_signal_init.restype = c_int
2743pa_signal_init.argtypes = [POINTER(pa_mainloop_api)]
2744
2745# /usr/include/pulse/mainloop-signal.h:51
2746pa_signal_done = _lib.pa_signal_done
2747pa_signal_done.restype = None
2748pa_signal_done.argtypes = []
2749
2750# /usr/include/pulse/mainloop-signal.h:54
2751pa_signal_new = _lib.pa_signal_new
2752pa_signal_new.restype = POINTER(pa_signal_event)
2753pa_signal_new.argtypes = [c_int, pa_signal_cb_t, POINTER(None)]
2754
2755# /usr/include/pulse/mainloop-signal.h:57
2756pa_signal_free = _lib.pa_signal_free
2757pa_signal_free.restype = None
2758pa_signal_free.argtypes = [POINTER(pa_signal_event)]
2759
2760# /usr/include/pulse/mainloop-signal.h:60
2761pa_signal_set_destroy = _lib.pa_signal_set_destroy
2762pa_signal_set_destroy.restype = None
2763pa_signal_set_destroy.argtypes = [POINTER(pa_signal_event), pa_signal_destroy_cb_t]
2764
2765# /usr/include/pulse/util.h:35
2766pa_get_user_name = _lib.pa_get_user_name
2767pa_get_user_name.restype = c_char_p
2768pa_get_user_name.argtypes = [c_char_p, c_size_t]
2769
2770# /usr/include/pulse/util.h:38
2771pa_get_host_name = _lib.pa_get_host_name
2772pa_get_host_name.restype = c_char_p
2773pa_get_host_name.argtypes = [c_char_p, c_size_t]
2774
2775# /usr/include/pulse/util.h:41
2776pa_get_fqdn = _lib.pa_get_fqdn
2777pa_get_fqdn.restype = c_char_p
2778pa_get_fqdn.argtypes = [c_char_p, c_size_t]
2779
2780# /usr/include/pulse/util.h:44
2781pa_get_home_dir = _lib.pa_get_home_dir
2782pa_get_home_dir.restype = c_char_p
2783pa_get_home_dir.argtypes = [c_char_p, c_size_t]
2784
2785# /usr/include/pulse/util.h:48
2786pa_get_binary_name = _lib.pa_get_binary_name
2787pa_get_binary_name.restype = c_char_p
2788pa_get_binary_name.argtypes = [c_char_p, c_size_t]
2789
2790# /usr/include/pulse/util.h:52
2791pa_path_get_filename = _lib.pa_path_get_filename
2792pa_path_get_filename.restype = c_char_p
2793pa_path_get_filename.argtypes = [c_char_p]
2794
2795# /usr/include/pulse/util.h:55
2796pa_msleep = _lib.pa_msleep
2797pa_msleep.restype = c_int
2798pa_msleep.argtypes = [c_ulong]
2799
2800# /usr/include/pulse/timeval.h:61
2801pa_gettimeofday = _lib.pa_gettimeofday
2802pa_gettimeofday.restype = POINTER(struct_timeval)
2803pa_gettimeofday.argtypes = [POINTER(struct_timeval)]
2804
2805# /usr/include/pulse/timeval.h:65
2806pa_timeval_diff = _lib.pa_timeval_diff
2807pa_timeval_diff.restype = pa_usec_t
2808pa_timeval_diff.argtypes = [POINTER(struct_timeval), POINTER(struct_timeval)]
2809
2810# /usr/include/pulse/timeval.h:68
2811pa_timeval_cmp = _lib.pa_timeval_cmp
2812pa_timeval_cmp.restype = c_int
2813pa_timeval_cmp.argtypes = [POINTER(struct_timeval), POINTER(struct_timeval)]
2814
2815# /usr/include/pulse/timeval.h:71
2816pa_timeval_age = _lib.pa_timeval_age
2817pa_timeval_age.restype = pa_usec_t
2818pa_timeval_age.argtypes = [POINTER(struct_timeval)]
2819
2820# /usr/include/pulse/timeval.h:74
2821pa_timeval_add = _lib.pa_timeval_add
2822pa_timeval_add.restype = POINTER(struct_timeval)
2823pa_timeval_add.argtypes = [POINTER(struct_timeval), pa_usec_t]
2824
2825# /usr/include/pulse/timeval.h:77
2826pa_timeval_sub = _lib.pa_timeval_sub
2827pa_timeval_sub.restype = POINTER(struct_timeval)
2828pa_timeval_sub.argtypes = [POINTER(struct_timeval), pa_usec_t]
2829
2830# /usr/include/pulse/timeval.h:80
2831pa_timeval_store = _lib.pa_timeval_store
2832pa_timeval_store.restype = POINTER(struct_timeval)
2833pa_timeval_store.argtypes = [POINTER(struct_timeval), pa_usec_t]
2834
2835# /usr/include/pulse/timeval.h:83
2836pa_timeval_load = _lib.pa_timeval_load
2837pa_timeval_load.restype = pa_usec_t
2838pa_timeval_load.argtypes = [POINTER(struct_timeval)]
2839
2840__all__ = ['pa_get_library_version', 'PA_API_VERSION', 'PA_PROTOCOL_VERSION',
2841           'PA_MAJOR', 'PA_MINOR', 'PA_MICRO', 'PA_CHANNELS_MAX', 'PA_RATE_MAX',
2842           'pa_sample_format_t', 'PA_SAMPLE_U8', 'PA_SAMPLE_ALAW', 'PA_SAMPLE_ULAW',
2843           'PA_SAMPLE_S16LE', 'PA_SAMPLE_S16BE', 'PA_SAMPLE_FLOAT32LE',
2844           'PA_SAMPLE_FLOAT32BE', 'PA_SAMPLE_S32LE', 'PA_SAMPLE_S32BE',
2845           'PA_SAMPLE_S24LE', 'PA_SAMPLE_S24BE', 'PA_SAMPLE_S24_32LE',
2846           'PA_SAMPLE_S24_32BE', 'PA_SAMPLE_MAX', 'PA_SAMPLE_INVALID', 'pa_sample_spec',
2847           'pa_usec_t', 'pa_bytes_per_second', 'pa_frame_size', 'pa_sample_size',
2848           'pa_sample_size_of_format', 'pa_bytes_to_usec', 'pa_usec_to_bytes',
2849           'pa_sample_spec_init', 'pa_sample_format_valid', 'pa_sample_rate_valid',
2850           'pa_channels_valid', 'pa_sample_spec_valid', 'pa_sample_spec_equal',
2851           'pa_sample_format_to_string', 'pa_parse_sample_format',
2852           'PA_SAMPLE_SPEC_SNPRINT_MAX', 'pa_sample_spec_snprint',
2853           'PA_BYTES_SNPRINT_MAX', 'pa_bytes_snprint', 'pa_sample_format_is_le',
2854           'pa_sample_format_is_be', 'pa_context_state_t', 'PA_CONTEXT_UNCONNECTED',
2855           'PA_CONTEXT_CONNECTING', 'PA_CONTEXT_AUTHORIZING', 'PA_CONTEXT_SETTING_NAME',
2856           'PA_CONTEXT_READY', 'PA_CONTEXT_FAILED', 'PA_CONTEXT_TERMINATED',
2857           'pa_stream_state_t', 'PA_STREAM_UNCONNECTED', 'PA_STREAM_CREATING',
2858           'PA_STREAM_READY', 'PA_STREAM_FAILED', 'PA_STREAM_TERMINATED',
2859           'pa_operation_state_t', 'PA_OPERATION_RUNNING', 'PA_OPERATION_DONE',
2860           'PA_OPERATION_CANCELLED', 'pa_context_flags_t', 'PA_CONTEXT_NOFLAGS',
2861           'PA_CONTEXT_NOAUTOSPAWN', 'PA_CONTEXT_NOFAIL', 'pa_direction_t',
2862           'PA_DIRECTION_OUTPUT', 'PA_DIRECTION_INPUT', 'pa_device_type_t',
2863           'PA_DEVICE_TYPE_SINK', 'PA_DEVICE_TYPE_SOURCE', 'pa_stream_direction_t',
2864           'PA_STREAM_NODIRECTION', 'PA_STREAM_PLAYBACK', 'PA_STREAM_RECORD',
2865           'PA_STREAM_UPLOAD', 'pa_stream_flags_t', 'PA_STREAM_NOFLAGS',
2866           'PA_STREAM_START_CORKED', 'PA_STREAM_INTERPOLATE_TIMING',
2867           'PA_STREAM_NOT_MONOTONIC', 'PA_STREAM_AUTO_TIMING_UPDATE',
2868           'PA_STREAM_NO_REMAP_CHANNELS', 'PA_STREAM_NO_REMIX_CHANNELS',
2869           'PA_STREAM_FIX_FORMAT', 'PA_STREAM_FIX_RATE', 'PA_STREAM_FIX_CHANNELS',
2870           'PA_STREAM_DONT_MOVE', 'PA_STREAM_VARIABLE_RATE', 'PA_STREAM_PEAK_DETECT',
2871           'PA_STREAM_START_MUTED', 'PA_STREAM_ADJUST_LATENCY',
2872           'PA_STREAM_EARLY_REQUESTS', 'PA_STREAM_DONT_INHIBIT_AUTO_SUSPEND',
2873           'PA_STREAM_START_UNMUTED', 'PA_STREAM_FAIL_ON_SUSPEND',
2874           'PA_STREAM_RELATIVE_VOLUME', 'PA_STREAM_PASSTHROUGH', 'pa_buffer_attr',
2875           'pa_error_code_t', 'PA_OK', 'PA_ERR_ACCESS', 'PA_ERR_COMMAND',
2876           'PA_ERR_INVALID', 'PA_ERR_EXIST', 'PA_ERR_NOENTITY',
2877           'PA_ERR_CONNECTIONREFUSED', 'PA_ERR_PROTOCOL', 'PA_ERR_TIMEOUT',
2878           'PA_ERR_AUTHKEY', 'PA_ERR_INTERNAL', 'PA_ERR_CONNECTIONTERMINATED',
2879           'PA_ERR_KILLED', 'PA_ERR_INVALIDSERVER', 'PA_ERR_MODINITFAILED',
2880           'PA_ERR_BADSTATE', 'PA_ERR_NODATA', 'PA_ERR_VERSION', 'PA_ERR_TOOLARGE',
2881           'PA_ERR_NOTSUPPORTED', 'PA_ERR_UNKNOWN', 'PA_ERR_NOEXTENSION',
2882           'PA_ERR_OBSOLETE', 'PA_ERR_NOTIMPLEMENTED', 'PA_ERR_FORKED', 'PA_ERR_IO',
2883           'PA_ERR_BUSY', 'PA_ERR_MAX', 'pa_subscription_mask_t',
2884           'PA_SUBSCRIPTION_MASK_NULL', 'PA_SUBSCRIPTION_MASK_SINK',
2885           'PA_SUBSCRIPTION_MASK_SOURCE', 'PA_SUBSCRIPTION_MASK_SINK_INPUT',
2886           'PA_SUBSCRIPTION_MASK_SOURCE_OUTPUT', 'PA_SUBSCRIPTION_MASK_MODULE',
2887           'PA_SUBSCRIPTION_MASK_CLIENT', 'PA_SUBSCRIPTION_MASK_SAMPLE_CACHE',
2888           'PA_SUBSCRIPTION_MASK_SERVER', 'PA_SUBSCRIPTION_MASK_AUTOLOAD',
2889           'PA_SUBSCRIPTION_MASK_CARD', 'PA_SUBSCRIPTION_MASK_ALL',
2890           'pa_subscription_event_type_t', 'PA_SUBSCRIPTION_EVENT_SINK',
2891           'PA_SUBSCRIPTION_EVENT_SOURCE', 'PA_SUBSCRIPTION_EVENT_SINK_INPUT',
2892           'PA_SUBSCRIPTION_EVENT_SOURCE_OUTPUT', 'PA_SUBSCRIPTION_EVENT_MODULE',
2893           'PA_SUBSCRIPTION_EVENT_CLIENT', 'PA_SUBSCRIPTION_EVENT_SAMPLE_CACHE',
2894           'PA_SUBSCRIPTION_EVENT_SERVER', 'PA_SUBSCRIPTION_EVENT_AUTOLOAD',
2895           'PA_SUBSCRIPTION_EVENT_CARD', 'PA_SUBSCRIPTION_EVENT_FACILITY_MASK',
2896           'PA_SUBSCRIPTION_EVENT_NEW', 'PA_SUBSCRIPTION_EVENT_CHANGE',
2897           'PA_SUBSCRIPTION_EVENT_REMOVE', 'PA_SUBSCRIPTION_EVENT_TYPE_MASK',
2898           'pa_timing_info', 'pa_spawn_api', 'pa_seek_mode_t', 'PA_SEEK_RELATIVE',
2899           'PA_SEEK_ABSOLUTE', 'PA_SEEK_RELATIVE_ON_READ', 'PA_SEEK_RELATIVE_END',
2900           'pa_sink_flags_t', 'PA_SINK_NOFLAGS', 'PA_SINK_HW_VOLUME_CTRL',
2901           'PA_SINK_LATENCY', 'PA_SINK_HARDWARE', 'PA_SINK_NETWORK',
2902           'PA_SINK_HW_MUTE_CTRL', 'PA_SINK_DECIBEL_VOLUME', 'PA_SINK_FLAT_VOLUME',
2903           'PA_SINK_DYNAMIC_LATENCY', 'PA_SINK_SET_FORMATS', 'pa_sink_state_t',
2904           'PA_SINK_INVALID_STATE', 'PA_SINK_RUNNING', 'PA_SINK_IDLE',
2905           'PA_SINK_SUSPENDED', 'PA_SINK_INIT', 'PA_SINK_UNLINKED', 'pa_source_flags_t',
2906           'PA_SOURCE_NOFLAGS', 'PA_SOURCE_HW_VOLUME_CTRL', 'PA_SOURCE_LATENCY',
2907           'PA_SOURCE_HARDWARE', 'PA_SOURCE_NETWORK', 'PA_SOURCE_HW_MUTE_CTRL',
2908           'PA_SOURCE_DECIBEL_VOLUME', 'PA_SOURCE_DYNAMIC_LATENCY',
2909           'PA_SOURCE_FLAT_VOLUME', 'pa_source_state_t', 'PA_SOURCE_INVALID_STATE',
2910           'PA_SOURCE_RUNNING', 'PA_SOURCE_IDLE', 'PA_SOURCE_SUSPENDED',
2911           'PA_SOURCE_INIT', 'PA_SOURCE_UNLINKED', 'pa_free_cb_t', 'pa_port_available_t',
2912           'PA_PORT_AVAILABLE_UNKNOWN', 'PA_PORT_AVAILABLE_NO', 'PA_PORT_AVAILABLE_YES',
2913           'pa_mainloop_api', 'pa_io_event_flags_t', 'PA_IO_EVENT_NULL',
2914           'PA_IO_EVENT_INPUT', 'PA_IO_EVENT_OUTPUT', 'PA_IO_EVENT_HANGUP',
2915           'PA_IO_EVENT_ERROR', 'pa_io_event', 'pa_io_event_cb_t',
2916           'pa_io_event_destroy_cb_t', 'pa_time_event', 'pa_time_event_cb_t',
2917           'pa_time_event_destroy_cb_t', 'pa_defer_event', 'pa_defer_event_cb_t',
2918           'pa_defer_event_destroy_cb_t', 'pa_mainloop_api_once',
2919           'pa_channel_position_t', 'PA_CHANNEL_POSITION_INVALID',
2920           'PA_CHANNEL_POSITION_MONO', 'PA_CHANNEL_POSITION_FRONT_LEFT',
2921           'PA_CHANNEL_POSITION_FRONT_RIGHT', 'PA_CHANNEL_POSITION_FRONT_CENTER',
2922           'PA_CHANNEL_POSITION_LEFT', 'PA_CHANNEL_POSITION_RIGHT',
2923           'PA_CHANNEL_POSITION_CENTER', 'PA_CHANNEL_POSITION_REAR_CENTER',
2924           'PA_CHANNEL_POSITION_REAR_LEFT', 'PA_CHANNEL_POSITION_REAR_RIGHT',
2925           'PA_CHANNEL_POSITION_LFE', 'PA_CHANNEL_POSITION_SUBWOOFER',
2926           'PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER',
2927           'PA_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER', 'PA_CHANNEL_POSITION_SIDE_LEFT',
2928           'PA_CHANNEL_POSITION_SIDE_RIGHT', 'PA_CHANNEL_POSITION_AUX0',
2929           'PA_CHANNEL_POSITION_AUX1', 'PA_CHANNEL_POSITION_AUX2',
2930           'PA_CHANNEL_POSITION_AUX3', 'PA_CHANNEL_POSITION_AUX4',
2931           'PA_CHANNEL_POSITION_AUX5', 'PA_CHANNEL_POSITION_AUX6',
2932           'PA_CHANNEL_POSITION_AUX7', 'PA_CHANNEL_POSITION_AUX8',
2933           'PA_CHANNEL_POSITION_AUX9', 'PA_CHANNEL_POSITION_AUX10',
2934           'PA_CHANNEL_POSITION_AUX11', 'PA_CHANNEL_POSITION_AUX12',
2935           'PA_CHANNEL_POSITION_AUX13', 'PA_CHANNEL_POSITION_AUX14',
2936           'PA_CHANNEL_POSITION_AUX15', 'PA_CHANNEL_POSITION_AUX16',
2937           'PA_CHANNEL_POSITION_AUX17', 'PA_CHANNEL_POSITION_AUX18',
2938           'PA_CHANNEL_POSITION_AUX19', 'PA_CHANNEL_POSITION_AUX20',
2939           'PA_CHANNEL_POSITION_AUX21', 'PA_CHANNEL_POSITION_AUX22',
2940           'PA_CHANNEL_POSITION_AUX23', 'PA_CHANNEL_POSITION_AUX24',
2941           'PA_CHANNEL_POSITION_AUX25', 'PA_CHANNEL_POSITION_AUX26',
2942           'PA_CHANNEL_POSITION_AUX27', 'PA_CHANNEL_POSITION_AUX28',
2943           'PA_CHANNEL_POSITION_AUX29', 'PA_CHANNEL_POSITION_AUX30',
2944           'PA_CHANNEL_POSITION_AUX31', 'PA_CHANNEL_POSITION_TOP_CENTER',
2945           'PA_CHANNEL_POSITION_TOP_FRONT_LEFT', 'PA_CHANNEL_POSITION_TOP_FRONT_RIGHT',
2946           'PA_CHANNEL_POSITION_TOP_FRONT_CENTER', 'PA_CHANNEL_POSITION_TOP_REAR_LEFT',
2947           'PA_CHANNEL_POSITION_TOP_REAR_RIGHT', 'PA_CHANNEL_POSITION_TOP_REAR_CENTER',
2948           'PA_CHANNEL_POSITION_MAX', 'pa_channel_position_mask_t',
2949           'pa_channel_map_def_t', 'PA_CHANNEL_MAP_AIFF', 'PA_CHANNEL_MAP_ALSA',
2950           'PA_CHANNEL_MAP_AUX', 'PA_CHANNEL_MAP_WAVEEX', 'PA_CHANNEL_MAP_OSS',
2951           'PA_CHANNEL_MAP_DEF_MAX', 'PA_CHANNEL_MAP_DEFAULT', 'pa_channel_map',
2952           'pa_channel_map_init', 'pa_channel_map_init_mono',
2953           'pa_channel_map_init_stereo', 'pa_channel_map_init_auto',
2954           'pa_channel_map_init_extend', 'pa_channel_position_to_string',
2955           'pa_channel_position_from_string', 'pa_channel_position_to_pretty_string',
2956           'PA_CHANNEL_MAP_SNPRINT_MAX', 'pa_channel_map_snprint',
2957           'pa_channel_map_parse', 'pa_channel_map_equal', 'pa_channel_map_valid',
2958           'pa_channel_map_compatible', 'pa_channel_map_superset',
2959           'pa_channel_map_can_balance', 'pa_channel_map_can_fade',
2960           'pa_channel_map_to_name', 'pa_channel_map_to_pretty_name',
2961           'pa_channel_map_has_position', 'pa_channel_map_mask', 'pa_operation',
2962           'pa_operation_notify_cb_t', 'pa_operation_ref', 'pa_operation_unref',
2963           'pa_operation_cancel', 'pa_operation_get_state',
2964           'pa_operation_set_state_callback', 'pa_context', 'pa_context_notify_cb_t',
2965           'pa_context_success_cb_t', 'pa_context_event_cb_t', 'pa_context_new',
2966           'pa_context_new_with_proplist', 'pa_context_unref', 'pa_context_ref',
2967           'pa_context_set_state_callback', 'pa_context_set_event_callback',
2968           'pa_context_errno', 'pa_context_is_pending', 'pa_context_get_state',
2969           'pa_context_connect', 'pa_context_disconnect', 'pa_context_drain',
2970           'pa_context_exit_daemon', 'pa_context_set_default_sink',
2971           'pa_context_set_default_source', 'pa_context_is_local', 'pa_context_set_name',
2972           'pa_context_get_server', 'pa_context_get_protocol_version',
2973           'pa_context_get_server_protocol_version', 'PA_UPDATE_SET', 'PA_UPDATE_MERGE',
2974           'PA_UPDATE_REPLACE', 'pa_context_proplist_update',
2975           'pa_context_proplist_remove', 'pa_context_get_index', 'pa_context_rttime_new',
2976           'pa_context_rttime_restart', 'pa_context_get_tile_size',
2977           'pa_context_load_cookie_from_file', 'pa_volume_t', 'pa_cvolume',
2978           'pa_cvolume_equal', 'pa_cvolume_init', 'pa_cvolume_set',
2979           'PA_CVOLUME_SNPRINT_MAX', 'pa_cvolume_snprint',
2980           'PA_SW_CVOLUME_SNPRINT_DB_MAX', 'pa_sw_cvolume_snprint_dB',
2981           'PA_CVOLUME_SNPRINT_VERBOSE_MAX', 'pa_cvolume_snprint_verbose',
2982           'PA_VOLUME_SNPRINT_MAX', 'pa_volume_snprint', 'PA_SW_VOLUME_SNPRINT_DB_MAX',
2983           'pa_sw_volume_snprint_dB', 'PA_VOLUME_SNPRINT_VERBOSE_MAX',
2984           'pa_volume_snprint_verbose', 'pa_cvolume_avg', 'pa_cvolume_avg_mask',
2985           'pa_cvolume_max', 'pa_cvolume_max_mask', 'pa_cvolume_min',
2986           'pa_cvolume_min_mask', 'pa_cvolume_valid', 'pa_cvolume_channels_equal_to',
2987           'pa_sw_volume_multiply', 'pa_sw_cvolume_multiply',
2988           'pa_sw_cvolume_multiply_scalar', 'pa_sw_volume_divide',
2989           'pa_sw_cvolume_divide', 'pa_sw_cvolume_divide_scalar', 'pa_sw_volume_from_dB',
2990           'pa_sw_volume_to_dB', 'pa_sw_volume_from_linear', 'pa_sw_volume_to_linear',
2991           'pa_cvolume_remap', 'pa_cvolume_compatible',
2992           'pa_cvolume_compatible_with_channel_map', 'pa_cvolume_get_balance',
2993           'pa_cvolume_set_balance', 'pa_cvolume_get_fade', 'pa_cvolume_set_fade',
2994           'pa_cvolume_scale', 'pa_cvolume_scale_mask', 'pa_cvolume_set_position',
2995           'pa_cvolume_get_position', 'pa_cvolume_merge', 'pa_cvolume_inc_clamp',
2996           'pa_cvolume_inc', 'pa_cvolume_dec', 'pa_stream', 'pa_stream_success_cb_t',
2997           'pa_stream_request_cb_t', 'pa_stream_notify_cb_t', 'pa_stream_event_cb_t',
2998           'pa_stream_new', 'pa_stream_new_with_proplist', 'PA_ENCODING_ANY',
2999           'PA_ENCODING_PCM', 'PA_ENCODING_AC3_IEC61937', 'PA_ENCODING_EAC3_IEC61937',
3000           'PA_ENCODING_MPEG_IEC61937', 'PA_ENCODING_DTS_IEC61937',
3001           'PA_ENCODING_MPEG2_AAC_IEC61937', 'PA_ENCODING_MAX', 'PA_ENCODING_INVALID',
3002           'pa_stream_new_extended', 'pa_stream_unref', 'pa_stream_ref',
3003           'pa_stream_get_state', 'pa_stream_get_context', 'pa_stream_get_index',
3004           'pa_stream_get_device_index', 'pa_stream_get_device_name',
3005           'pa_stream_is_suspended', 'pa_stream_is_corked', 'pa_stream_connect_playback',
3006           'pa_stream_connect_record', 'pa_stream_disconnect', 'pa_stream_begin_write',
3007           'pa_stream_cancel_write', 'pa_stream_write', 'pa_stream_write_ext_free',
3008           'pa_stream_peek', 'pa_stream_drop', 'pa_stream_writable_size',
3009           'pa_stream_readable_size', 'pa_stream_drain', 'pa_stream_update_timing_info',
3010           'pa_stream_set_state_callback', 'pa_stream_set_write_callback',
3011           'pa_stream_set_read_callback', 'pa_stream_set_overflow_callback',
3012           'pa_stream_get_underflow_index', 'pa_stream_set_underflow_callback',
3013           'pa_stream_set_started_callback', 'pa_stream_set_latency_update_callback',
3014           'pa_stream_set_moved_callback', 'pa_stream_set_suspended_callback',
3015           'pa_stream_set_event_callback', 'pa_stream_set_buffer_attr_callback',
3016           'pa_stream_cork', 'pa_stream_flush', 'pa_stream_prebuf', 'pa_stream_trigger',
3017           'pa_stream_set_name', 'pa_stream_get_time', 'pa_stream_get_latency',
3018           'pa_stream_get_timing_info', 'pa_stream_get_sample_spec',
3019           'pa_stream_get_channel_map', 'pa_stream_get_format_info',
3020           'pa_stream_get_buffer_attr', 'pa_stream_set_buffer_attr',
3021           'pa_stream_update_sample_rate', 'pa_stream_proplist_update',
3022           'pa_stream_proplist_remove', 'pa_stream_set_monitor_stream',
3023           'pa_stream_get_monitor_stream', 'pa_sink_port_info', 'pa_sink_info',
3024           'pa_sink_info_cb_t', 'pa_context_get_sink_info_by_name',
3025           'pa_context_get_sink_info_by_index', 'pa_context_get_sink_info_list',
3026           'pa_context_set_sink_volume_by_index', 'pa_context_set_sink_volume_by_name',
3027           'pa_context_set_sink_mute_by_index', 'pa_context_set_sink_mute_by_name',
3028           'pa_context_suspend_sink_by_name', 'pa_context_suspend_sink_by_index',
3029           'pa_context_set_sink_port_by_index', 'pa_context_set_sink_port_by_name',
3030           'pa_source_port_info', 'pa_source_info', 'pa_source_info_cb_t',
3031           'pa_context_get_source_info_by_name', 'pa_context_get_source_info_by_index',
3032           'pa_context_get_source_info_list', 'pa_context_set_source_volume_by_index',
3033           'pa_context_set_source_volume_by_name', 'pa_context_set_source_mute_by_index',
3034           'pa_context_set_source_mute_by_name', 'pa_context_suspend_source_by_name',
3035           'pa_context_suspend_source_by_index', 'pa_context_set_source_port_by_index',
3036           'pa_context_set_source_port_by_name', 'pa_server_info', 'pa_server_info_cb_t',
3037           'pa_context_get_server_info', 'pa_module_info', 'pa_module_info_cb_t',
3038           'pa_context_get_module_info', 'pa_context_get_module_info_list',
3039           'pa_context_index_cb_t', 'pa_context_load_module', 'pa_context_unload_module',
3040           'pa_client_info', 'pa_client_info_cb_t', 'pa_context_get_client_info',
3041           'pa_context_get_client_info_list', 'pa_context_kill_client',
3042           'pa_card_profile_info', 'pa_card_profile_info2', 'pa_card_port_info',
3043           'pa_card_info', 'pa_card_info_cb_t', 'pa_context_get_card_info_by_index',
3044           'pa_context_get_card_info_by_name', 'pa_context_get_card_info_list',
3045           'pa_context_set_card_profile_by_index', 'pa_context_set_card_profile_by_name',
3046           'pa_context_set_port_latency_offset', 'pa_sink_input_info',
3047           'pa_sink_input_info_cb_t', 'pa_context_get_sink_input_info',
3048           'pa_context_get_sink_input_info_list', 'pa_context_move_sink_input_by_name',
3049           'pa_context_move_sink_input_by_index', 'pa_context_set_sink_input_volume',
3050           'pa_context_set_sink_input_mute', 'pa_context_kill_sink_input',
3051           'pa_source_output_info', 'pa_source_output_info_cb_t',
3052           'pa_context_get_source_output_info', 'pa_context_get_source_output_info_list',
3053           'pa_context_move_source_output_by_name',
3054           'pa_context_move_source_output_by_index',
3055           'pa_context_set_source_output_volume', 'pa_context_set_source_output_mute',
3056           'pa_context_kill_source_output', 'pa_stat_info', 'pa_stat_info_cb_t',
3057           'pa_context_stat', 'pa_sample_info', 'pa_sample_info_cb_t',
3058           'pa_context_get_sample_info_by_name', 'pa_context_get_sample_info_by_index',
3059           'pa_context_get_sample_info_list', 'pa_autoload_type_t', 'PA_AUTOLOAD_SINK',
3060           'PA_AUTOLOAD_SOURCE', 'pa_autoload_info', 'pa_autoload_info_cb_t',
3061           'pa_context_get_autoload_info_by_name',
3062           'pa_context_get_autoload_info_by_index', 'pa_context_get_autoload_info_list',
3063           'pa_context_add_autoload', 'pa_context_remove_autoload_by_name',
3064           'pa_context_remove_autoload_by_index', 'pa_context_subscribe_cb_t',
3065           'pa_context_subscribe', 'pa_context_set_subscribe_callback',
3066           'pa_context_play_sample_cb_t', 'pa_stream_connect_upload',
3067           'pa_stream_finish_upload', 'pa_context_remove_sample',
3068           'pa_context_play_sample', 'pa_context_play_sample_with_proplist',
3069           'pa_strerror', 'pa_xmalloc', 'pa_xmalloc0', 'pa_xrealloc', 'pa_xfree',
3070           'pa_xstrdup', 'pa_xstrndup', 'pa_xmemdup', '_pa_xnew_internal',
3071           '_pa_xnew0_internal', '_pa_xnewdup_internal', '_pa_xrenew_internal',
3072           'pa_utf8_valid', 'pa_ascii_valid', 'pa_utf8_filter', 'pa_ascii_filter',
3073           'pa_utf8_to_locale', 'pa_locale_to_utf8', 'pa_threaded_mainloop',
3074           'pa_threaded_mainloop_new', 'pa_threaded_mainloop_free',
3075           'pa_threaded_mainloop_start', 'pa_threaded_mainloop_stop',
3076           'pa_threaded_mainloop_lock', 'pa_threaded_mainloop_unlock',
3077           'pa_threaded_mainloop_wait', 'pa_threaded_mainloop_signal',
3078           'pa_threaded_mainloop_accept', 'pa_threaded_mainloop_get_retval',
3079           'pa_threaded_mainloop_get_api', 'pa_threaded_mainloop_in_thread',
3080           'pa_threaded_mainloop_set_name', 'pa_mainloop', 'pa_mainloop_new',
3081           'pa_mainloop_free', 'pa_mainloop_prepare', 'pa_mainloop_poll',
3082           'pa_mainloop_dispatch', 'pa_mainloop_get_retval', 'pa_mainloop_iterate',
3083           'pa_mainloop_run', 'pa_mainloop_get_api', 'pa_mainloop_quit',
3084           'pa_mainloop_wakeup', 'pa_poll_func', 'pa_mainloop_set_poll_func',
3085           'pa_signal_event', 'pa_signal_cb_t', 'pa_signal_destroy_cb_t',
3086           'pa_signal_init', 'pa_signal_done', 'pa_signal_new', 'pa_signal_free',
3087           'pa_signal_set_destroy', 'pa_get_user_name', 'pa_get_host_name',
3088           'pa_get_fqdn', 'pa_get_home_dir', 'pa_get_binary_name',
3089           'pa_path_get_filename', 'pa_msleep', 'pa_gettimeofday', 'pa_timeval_diff',
3090           'pa_timeval_cmp', 'pa_timeval_age', 'pa_timeval_add', 'pa_timeval_sub',
3091           'pa_timeval_store', 'pa_timeval_load']
3092