loadFromMemory

fun loadFromMemory(type: String, data: ERROR CLASS: Symbol not found for UByteArray): Wave

Loads a wave from memory, which can be in WAV, OGG, or MP3 format. The loaded wave should be unloaded with Wave.unload when it is no longer needed.

Return

The loaded wave.

Parameters

type

The type of the wave data, which can be "WAV", "OGG", or "MP3".

data

The raw audio data of the wave.