init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
86
.venv/lib/python3.8/site-packages/pygame/mixer.pyi
Normal file
86
.venv/lib/python3.8/site-packages/pygame/mixer.pyi
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
from typing import Any, Optional, Tuple, Union, overload
|
||||
|
||||
import numpy
|
||||
|
||||
from pygame.event import Event
|
||||
|
||||
from . import music as music
|
||||
from ._common import _FileArg
|
||||
|
||||
def init(
|
||||
frequency: int = 44100,
|
||||
size: int = -16,
|
||||
channels: int = 2,
|
||||
buffer: int = 512,
|
||||
devicename: Optional[str] = None,
|
||||
allowedchanges: int = 5,
|
||||
) -> None: ...
|
||||
def pre_init(
|
||||
frequency: int = 44100,
|
||||
size: int = -16,
|
||||
channels: int = 2,
|
||||
buffer: int = 512,
|
||||
devicename: Optional[str] = None,
|
||||
allowedchanges: int = 5,
|
||||
) -> None: ...
|
||||
def quit() -> None: ...
|
||||
def get_init() -> Tuple[int, int, int]: ...
|
||||
def stop() -> None: ...
|
||||
def pause() -> None: ...
|
||||
def unpause() -> None: ...
|
||||
def fadeout(time: int) -> None: ...
|
||||
def set_num_channels(count: int) -> None: ...
|
||||
def get_num_channels() -> int: ...
|
||||
def set_reserved(count: int) -> int: ...
|
||||
def find_channel(force: bool = False) -> Channel: ...
|
||||
def get_busy() -> bool: ...
|
||||
def get_sdl_mixer_version(linked: bool = True) -> Tuple[int, int, int]: ...
|
||||
|
||||
class Sound:
|
||||
@overload
|
||||
def __init__(self, file: _FileArg) -> None: ...
|
||||
@overload
|
||||
def __init__(
|
||||
self, buffer: Any
|
||||
) -> None: ... # Buffer protocol is still not implemented in typing
|
||||
@overload
|
||||
def __init__(
|
||||
self, array: numpy.ndarray
|
||||
) -> None: ... # Buffer protocol is still not implemented in typing
|
||||
def play(
|
||||
self,
|
||||
loops: int = 0,
|
||||
maxtime: int = 0,
|
||||
fade_ms: int = 0,
|
||||
) -> Channel: ...
|
||||
def stop(self) -> None: ...
|
||||
def fadeout(self, time: int) -> None: ...
|
||||
def set_volume(self, value: float) -> None: ...
|
||||
def get_volume(self) -> float: ...
|
||||
def get_num_channels(self) -> int: ...
|
||||
def get_length(self) -> float: ...
|
||||
def get_raw(self) -> bytes: ...
|
||||
|
||||
class Channel:
|
||||
def __init__(self, id: int) -> None: ...
|
||||
def play(
|
||||
self,
|
||||
sound: Sound,
|
||||
loops: int = 0,
|
||||
maxtime: int = 0,
|
||||
fade_ms: int = 0,
|
||||
) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
def pause(self) -> None: ...
|
||||
def unpause(self) -> None: ...
|
||||
def fadeout(self, time: int) -> None: ...
|
||||
@overload
|
||||
def set_volume(self, value: float) -> None: ...
|
||||
@overload
|
||||
def set_volume(self, left: float, right: float) -> None: ...
|
||||
def get_volume(self) -> float: ...
|
||||
def get_busy(self) -> bool: ...
|
||||
def get_sound(self) -> Sound: ...
|
||||
def get_queue(self) -> Sound: ...
|
||||
def set_endevent(self, type: Union[int, Event] = 0) -> None: ...
|
||||
def get_endevent(self) -> int: ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue