loadMusicRaw

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

  1. Music loadMusicRaw(void[] data)
  2. Music loadMusicRaw(void[] data, MusicType type)
    @safe @trusted
    static if(bindSDLMixer)
    loadMusicRaw
    (
    const void[] data
    ,)

Parameters

data void[]

buffer of the audio file

type MusicType

specified dsdl2.mixer.MusicType enumeration of the music

Return Value

Type: Music

loaded dsdl2.mixer.Music

Throws

dsdl2.SDLException if unable to load

Meta