mini_arcade_core.runtime.audio.audio_adapter ============================================ .. py:module:: mini_arcade_core.runtime.audio.audio_adapter .. autoapi-nested-parse:: Module providing runtime adapters for window and scene management. Classes ------- .. autoapisummary:: mini_arcade_core.runtime.audio.audio_adapter.SDLAudioAdapter Module Contents --------------- .. py:class:: SDLAudioAdapter(backend: mini_arcade_core.backend.Backend) Bases: :py:obj:`mini_arcade_core.runtime.audio.audio_port.AudioPort` A no-op audio adapter. .. py:attribute:: backend .. py:method:: load_sound(sound_id: str, file_path: str) Load a sound from a file and associate it with an identifier. :param sound_id: Identifier to associate with the sound. :type sound_id: str :param file_path: Path to the sound file. :type file_path: str .. py:method:: play(sound_id: str, loops: int = 0) Play the specified sound. :param sound_id: Identifier of the sound to play. :type sound_id: str :param loops: Number of times to loop the sound. 0 = play once, -1 = infinite loop, 1 = play twice, etc. :type loops: int