forked from auracaster/pyalsaaudio
fix: PCM constructor stubs not coherent with runtime
This commit is contained in:
committed by
Lars Immisch
parent
6b2c4c22db
commit
0b8db5f46d
@@ -84,11 +84,23 @@ def asoundlib_version() -> str: ...
|
||||
def card_indexes() -> list[int]: ...
|
||||
def card_name(index: int): ...
|
||||
|
||||
_DEPRECATED = ...
|
||||
|
||||
@final
|
||||
class PCM:
|
||||
def __init__(self, type: int = PCM_PLAYBACK, mode: int = PCM_NORMAL, rate: int = 44100, channels: int = 2,
|
||||
format: int = PCM_FORMAT_S16_LE, periodsize: int = 32, periods: int = 4,
|
||||
device: str = 'default', cardindex: int = -1) -> None: ...
|
||||
def __init__(
|
||||
self,
|
||||
type: int = PCM_PLAYBACK,
|
||||
mode: int = PCM_NORMAL,
|
||||
device: str = "default",
|
||||
cardindex: int = -1,
|
||||
card: str = _DEPRECATED,
|
||||
rate: int = 44100,
|
||||
channels: int = 2,
|
||||
format: int = PCM_FORMAT_S16_LE,
|
||||
periodsize: int = 32,
|
||||
periods: int = 4,
|
||||
) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def dumpinfo(self) -> None: ...
|
||||
def info(self) -> dict: ...
|
||||
|
||||
Reference in New Issue
Block a user