Skip to content

Commit

Permalink
Add fifo stub, remove __init__.pyi
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Jun 21, 2024
1 parent 080d675 commit 84d758d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
18 changes: 0 additions & 18 deletions av/__init__.pyi

This file was deleted.

16 changes: 16 additions & 0 deletions av/audio/fifo.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
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: ...

0 comments on commit 84d758d

Please sign in to comment.