1 from typing import Tuple
3 AdpcmState = Tuple[int, int]
4 RatecvState = Tuple[int, Tuple[Tuple[int, int], ...]]
6 class error(Exception): ...
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: ...
34 __state: RatecvState | None,
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: ...