Debian Codegraph @

jedi/third_party/typeshed/stdlib/audioop.pyi

raw symbols SCIP
1 from typing_extensions import Buffer, TypeAlias
2
3 _AdpcmState: TypeAlias = tuple[int, int]
4 _RatecvState: TypeAlias = tuple[int, tuple[tuple[int, int], ...]]
5
6 class error(Exception): ...
7
8 def add(fragment1: Buffer, fragment2: Buffer, width: int, /) -> bytes: ...
9 def adpcm2lin(fragment: Buffer, width: int, state: _AdpcmState | None, /) -> tuple[bytes, _AdpcmState]: ...
10 def alaw2lin(fragment: Buffer, width: int, /) -> bytes: ...
11 def avg(fragment: Buffer, width: int, /) -> int: ...
12 def avgpp(fragment: Buffer, width: int, /) -> int: ...
13 def bias(fragment: Buffer, width: int, bias: int, /) -> bytes: ...
14 def byteswap(fragment: Buffer, width: int, /) -> bytes: ...
15 def cross(fragment: Buffer, width: int, /) -> int: ...
16 def findfactor(fragment: Buffer, reference: Buffer, /) -> float: ...
17 def findfit(fragment: Buffer, reference: Buffer, /) -> tuple[int, float]: ...
18 def findmax(fragment: Buffer, length: int, /) -> int: ...
19 def getsample(fragment: Buffer, width: int, index: int, /) -> int: ...
20 def lin2adpcm(fragment: Buffer, width: int, state: _AdpcmState | None, /) -> tuple[bytes, _AdpcmState]: ...
21 def lin2alaw(fragment: Buffer, width: int, /) -> bytes: ...
22 def lin2lin(fragment: Buffer, width: int, newwidth: int, /) -> bytes: ...
23 def lin2ulaw(fragment: Buffer, width: int, /) -> bytes: ...
24 def max(fragment: Buffer, width: int, /) -> int: ...
25 def maxpp(fragment: Buffer, width: int, /) -> int: ...
26 def minmax(fragment: Buffer, width: int, /) -> tuple[int, int]: ...
27 def mul(fragment: Buffer, width: int, factor: float, /) -> bytes: ...
28 def ratecv(
29 fragment: Buffer,
30 width: int,
31 nchannels: int,
32 inrate: int,
33 outrate: int,
34 state: _RatecvState | None,
35 weightA: int = 1,
36 weightB: int = 0,
37 /,
38 ) -> tuple[bytes, _RatecvState]: ...
39 def reverse(fragment: Buffer, width: int, /) -> bytes: ...
40 def rms(fragment: Buffer, width: int, /) -> int: ...
41 def tomono(fragment: Buffer, width: int, lfactor: float, rfactor: float, /) -> bytes: ...
42 def tostereo(fragment: Buffer, width: int, lfactor: float, rfactor: float, /) -> bytes: ...
43 def ulaw2lin(fragment: Buffer, width: int, /) -> bytes: ...