File size: 734 Bytes
06555b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from .format import AudioFormat
from .frame import AudioFrame
from .layout import AudioLayout

class AudioFifo:
    def write(self, frame: AudioFrame) -> None: ...
    def read(self, samples: int = 0, partial: bool = False) -> AudioFrame | None: ...
    def read_many(self, samples: int, partial: bool = False) -> list[AudioFrame]: ...
    @property
    def format(self) -> AudioFormat: ...
    @property
    def layout(self) -> AudioLayout: ...
    @property
    def sample_rate(self) -> int: ...
    @property
    def samples(self) -> int: ...
    @property
    def samples_written(self) -> int: ...
    @property
    def samples_read(self) -> int: ...
    @property
    def pts_per_sample(self) -> float: ...