massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stdlib / audioop.pyi
1 from typing import Tuple
2
3 AdpcmState = Tuple[int, int]
4 RatecvState = Tuple[int, Tuple[Tuple[int, int], ...]]
5
6 class error(Exception): ...
7
8 def add(__fragment1: bytes, __fragment2: bytes, __width: int) -> bytes: ...
9 def adpcm2lin(__fragment: bytes, __width: int, __state: AdpcmState | None) -> tuple[bytes, AdpcmState]: ...
10 def alaw2lin(__fragment: bytes, __width: int) -> bytes: ...
11 def avg(__fragment: bytes, __width: int) -> int: ...
12 def avgpp(__fragment: bytes, __width: int) -> int: ...
13 def bias(__fragment: bytes, __width: int, __bias: int) -> bytes: ...
14 def byteswap(__fragment: bytes, __width: int) -> bytes: ...
15 def cross(__fragment: bytes, __width: int) -> int: ...
16 def findfactor(__fragment: bytes, __reference: bytes) -> float: ...
17 def findfit(__fragment: bytes, __reference: bytes) -> tuple[int, float]: ...
18 def findmax(__fragment: bytes, __length: int) -> int: ...
19 def getsample(__fragment: bytes, __width: int, __index: int) -> int: ...
20 def lin2adpcm(__fragment: bytes, __width: int, __state: AdpcmState | None) -> tuple[bytes, AdpcmState]: ...
21 def lin2alaw(__fragment: bytes, __width: int) -> bytes: ...
22 def lin2lin(__fragment: bytes, __width: int, __newwidth: int) -> bytes: ...
23 def lin2ulaw(__fragment: bytes, __width: int) -> bytes: ...
24 def max(__fragment: bytes, __width: int) -> int: ...
25 def maxpp(__fragment: bytes, __width: int) -> int: ...
26 def minmax(__fragment: bytes, __width: int) -> tuple[int, int]: ...
27 def mul(__fragment: bytes, __width: int, __factor: float) -> bytes: ...
28 def ratecv(
29     __fragment: bytes,
30     __width: int,
31     __nchannels: int,
32     __inrate: int,
33     __outrate: int,
34     __state: RatecvState | None,
35     __weightA: int = ...,
36     __weightB: int = ...,
37 ) -> tuple[bytes, RatecvState]: ...
38 def reverse(__fragment: bytes, __width: int) -> bytes: ...
39 def rms(__fragment: bytes, __width: int) -> int: ...
40 def tomono(__fragment: bytes, __width: int, __lfactor: float, __rfactor: float) -> bytes: ...
41 def tostereo(__fragment: bytes, __width: int, __lfactor: float, __rfactor: float) -> bytes: ...
42 def ulaw2lin(__fragment: bytes, __width: int) -> bytes: ...