Audio Byte
Deprecated
AudioByte greedily eats up memory. Switch to the newer channel-based implementation, SoundBoard(context = Any?).
Replace with
SoundBoard(context = null)Deprecated
AudioByte greedily eats up memory. Switch to the newer channel-based implementation, SoundBoard(context = Any?).
Replace with
SoundBoard(context = null)Deprecated
AudioByte greedily eats up memory. Switch to the newer channel-based implementation, SoundBoard(context = Any?).
Replace with
SoundBoard(context = null)Play audio from a local file path or a Compose Resource (String).
Example:
val audioByte: AudioByte = AudioByte() // Create an AudioByte instance
val clickSound: Any = audioByte.load(Res.getUri("files/click.mp3")) // Load the audio file into memory
audioByte.play(clickSound) // Call it whenever you like as neededDeprecated
AudioByte greedily eats up memory. Switch to the newer channel-based implementation, SoundBoard(context = Any?).
Replace with
SoundBoard(context = null)Deprecated
AudioByte greedily eats up memory. Switch to the newer channel-based implementation, SoundBoard(context = Any?).
Replace with
SoundBoard(context = null)Deprecated
AudioByte greedily eats up memory. Switch to the newer channel-based implementation, SoundBoard(context = Any?).
Replace with
SoundBoard(context = null)Constructors
Functions
Used to load an Audio file into memory.
Play a loaded sound immediately, without regard for how many times it's already played