loadMusicRaw

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

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

Parameters

data void[]

buffer of the audio file

Return Value

Type: Music

loaded dsdl2.mixer.Music

Throws

dsdl2.SDLException if unable to load

Meta