loadMusicRaw - multiple declarations

Function loadMusicRaw

Wraps Mix_LoadMUS_RW which loads an audio file from a buffer to a Music

Music loadMusicRaw (
  const(void[]) data
) @trusted;

Parameters

NameDescription
data buffer of the audio file

Returns

loaded Music

Throws

dsdl2.SDLException if unable to load

Function loadMusicRaw

Wraps Mix_LoadMUSType_RW which loads a typed audio file from a buffer to a Music

Music loadMusicRaw (
  const(void[]) data,
  MusicType type
) @trusted;

Parameters

NameDescription
data buffer of the audio file
type specified MusicType enumeration of the music

Returns

loaded Music

Throws

dsdl2.SDLException if unable to load