1- from typing_extensions import TypeAlias
1+ from typing_extensions import Buffer , TypeAlias
22
33_AdpcmState : TypeAlias = tuple [int , int ]
44_RatecvState : TypeAlias = tuple [int , tuple [tuple [int , int ], ...]]
55
66class error (Exception ): ...
77
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 : ...
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 : ...
2828def ratecv (
29- fragment : bytes ,
29+ fragment : Buffer ,
3030 width : int ,
3131 nchannels : int ,
3232 inrate : int ,
@@ -36,8 +36,8 @@ def ratecv(
3636 weightB : int = 0 ,
3737 / ,
3838) -> tuple [bytes , _RatecvState ]: ...
39- def reverse (fragment : bytes , width : int , / ) -> bytes : ...
40- def rms (fragment : bytes , width : int , / ) -> int : ...
41- def tomono (fragment : bytes , width : int , lfactor : float , rfactor : float , / ) -> bytes : ...
42- def tostereo (fragment : bytes , width : int , lfactor : float , rfactor : float , / ) -> bytes : ...
43- def ulaw2lin (fragment : bytes , width : int , / ) -> bytes : ...
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 : ...
0 commit comments