1 from typing import Any, overload
2 from typing_extensions import Literal
19 SNDCTL_COPR_RCODE: int
20 SNDCTL_COPR_RCVMSG: int
21 SNDCTL_COPR_RDATA: int
22 SNDCTL_COPR_RESET: int
24 SNDCTL_COPR_SENDMSG: int
25 SNDCTL_COPR_WCODE: int
26 SNDCTL_COPR_WDATA: int
27 SNDCTL_DSP_BIND_CHANNEL: int
28 SNDCTL_DSP_CHANNELS: int
29 SNDCTL_DSP_GETBLKSIZE: int
30 SNDCTL_DSP_GETCAPS: int
31 SNDCTL_DSP_GETCHANNELMASK: int
32 SNDCTL_DSP_GETFMTS: int
33 SNDCTL_DSP_GETIPTR: int
34 SNDCTL_DSP_GETISPACE: int
35 SNDCTL_DSP_GETODELAY: int
36 SNDCTL_DSP_GETOPTR: int
37 SNDCTL_DSP_GETOSPACE: int
38 SNDCTL_DSP_GETSPDIF: int
39 SNDCTL_DSP_GETTRIGGER: int
40 SNDCTL_DSP_MAPINBUF: int
41 SNDCTL_DSP_MAPOUTBUF: int
42 SNDCTL_DSP_NONBLOCK: int
44 SNDCTL_DSP_PROFILE: int
46 SNDCTL_DSP_SAMPLESIZE: int
47 SNDCTL_DSP_SETDUPLEX: int
48 SNDCTL_DSP_SETFMT: int
49 SNDCTL_DSP_SETFRAGMENT: int
50 SNDCTL_DSP_SETSPDIF: int
51 SNDCTL_DSP_SETSYNCRO: int
52 SNDCTL_DSP_SETTRIGGER: int
54 SNDCTL_DSP_STEREO: int
55 SNDCTL_DSP_SUBDIVIDE: int
57 SNDCTL_FM_4OP_ENABLE: int
58 SNDCTL_FM_LOAD_INSTR: int
60 SNDCTL_MIDI_MPUCMD: int
61 SNDCTL_MIDI_MPUMODE: int
62 SNDCTL_MIDI_PRETIME: int
63 SNDCTL_SEQ_CTRLRATE: int
64 SNDCTL_SEQ_GETINCOUNT: int
65 SNDCTL_SEQ_GETOUTCOUNT: int
66 SNDCTL_SEQ_GETTIME: int
67 SNDCTL_SEQ_NRMIDIS: int
68 SNDCTL_SEQ_NRSYNTHS: int
69 SNDCTL_SEQ_OUTOFBAND: int
71 SNDCTL_SEQ_PERCMODE: int
73 SNDCTL_SEQ_RESETSAMPLES: int
75 SNDCTL_SEQ_TESTMIDI: int
76 SNDCTL_SEQ_THRESHOLD: int
77 SNDCTL_SYNTH_CONTROL: int
79 SNDCTL_SYNTH_INFO: int
80 SNDCTL_SYNTH_MEMAVL: int
81 SNDCTL_SYNTH_REMOVESAMPLE: int
82 SNDCTL_TMR_CONTINUE: int
83 SNDCTL_TMR_METRONOME: int
84 SNDCTL_TMR_SELECT: int
85 SNDCTL_TMR_SOURCE: int
89 SNDCTL_TMR_TIMEBASE: int
90 SOUND_MIXER_ALTPCM: int
93 SOUND_MIXER_DIGITAL1: int
94 SOUND_MIXER_DIGITAL2: int
95 SOUND_MIXER_DIGITAL3: int
96 SOUND_MIXER_IGAIN: int
99 SOUND_MIXER_LINE1: int
100 SOUND_MIXER_LINE2: int
101 SOUND_MIXER_LINE3: int
103 SOUND_MIXER_MONITOR: int
104 SOUND_MIXER_NRDEVICES: int
105 SOUND_MIXER_OGAIN: int
107 SOUND_MIXER_PHONEIN: int
108 SOUND_MIXER_PHONEOUT: int
109 SOUND_MIXER_RADIO: int
110 SOUND_MIXER_RECLEV: int
111 SOUND_MIXER_SPEAKER: int
112 SOUND_MIXER_SYNTH: int
113 SOUND_MIXER_TREBLE: int
114 SOUND_MIXER_VIDEO: int
115 SOUND_MIXER_VOLUME: int
117 control_labels: list[str]
118 control_names: list[str]
120 # TODO: oss_audio_device return type
122 def open(mode: Literal["r", "w", "rw"]) -> Any: ...
124 def open(device: str, mode: Literal["r", "w", "rw"]) -> Any: ...
126 # TODO: oss_mixer_device return type
127 def openmixer(device: str = ...) -> Any: ...
129 class OSSAudioError(Exception): ...
131 error = OSSAudioError