Sound_Player module

load_audio_data

procedure · 1 overloadSource

Reads a sound from memory. The result has loaded set when it worked.

load_audio_data :: (
    name_for_error_reporting: string,
    data: string
) -> Sound_Data

Reads a sound from memory. The result has loaded set when it worked.

Parameters

name_for_error_reporting: string
shown when the data cannot be read, and kept as the sound's name.
data: string
the bytes of a WAV or Ogg Vorbis file. They are not copied, so they must stay alive as long as the sound is used.

Returns

See also