loadFromMemory

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

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

Return

The loaded music stream.

Parameters

type

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

data

The raw audio data of the music stream.