File: alsaseq.pyi

package info (click to toggle)
raysession 0.17.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,196 kB
  • sloc: python: 44,463; sh: 1,538; makefile: 213; xml: 86
file content (59 lines) | stat: -rw-r--r-- 1,686 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59

from typing import TypeAlias, Any

PortTuple: TypeAlias = tuple[int, int]
AlsaConstant: TypeAlias = int

SEQ_LIB_VERSION_STR: str

SEQ_PORT_CAP_READ: AlsaConstant = 0x01
SEQ_PORT_CAP_WRITE: AlsaConstant = 0x02
SEQ_PORT_CAP_SUBS_READ: AlsaConstant = 0x20
SEQ_PORT_CAP_SUBS_WRITE: AlsaConstant = 0x40
SEQ_PORT_CAP_NO_EXPORT: AlsaConstant = 0x80
SEQ_PORT_TYPE_APPLICATION: AlsaConstant = 0x100000
SEQ_CLIENT_SYSTEM: AlsaConstant = 0
SEQ_USER_CLIENT: AlsaConstant = 1
SEQ_PORT_SYSTEM_ANNOUNCE: AlsaConstant = 1
SEQ_EVENT_CLIENT_START: AlsaConstant = 60
SEQ_EVENT_CLIENT_EXIT: AlsaConstant = 61
SEQ_EVENT_PORT_START: AlsaConstant = 63
SEQ_EVENT_PORT_EXIT: AlsaConstant = 64
SEQ_EVENT_PORT_SUBSCRIBED: AlsaConstant = 66
SEQ_EVENT_PORT_UNSUBSCRIBED: AlsaConstant = 67


class SequencerError:...


class SeqEvent:
    type: AlsaConstant
    
    def get_data(self) -> dict[str, Any]:...


class Sequencer:
    client_id: int
    
    def __init__(self, clientname=''):
        ...
    def create_simple_port(
            self, name='', type=SEQ_USER_CLIENT, caps=0) -> int:
        ...
    def connect_ports(
            self, from_: PortTuple, to_: PortTuple, *oargs):
        ...
    def disconnect_ports(self, from_: PortTuple, to_: PortTuple):
        ...
    def connection_list(self) -> list[
            tuple[str, int, list[tuple[
                str, int, list[list[tuple[int, int]]]]]]]:
        ...
    def receive_events(self, timeout=128, maxevents=1) -> list[SeqEvent]:
        ...
    def get_client_info(self, client_id: int) -> dict[str, str]:
        ...
    def get_port_info(self, port_id: int, client_id: int) -> dict[str, Any]:
        ...
    def exit(self):
        ...