SDLSample

SDL_mixer audio chunk wrapper.

Constructors

this
this(SDLMixer sdlmixer, string filename)

Loads a sample from a file.

Destructor

~this
~this()

Releases the SDL resource.

Members

Functions

getVolume
int getVolume()
handle
Mix_Chunk* handle()
play
int play(int channel, int loops, Duration fadeInTime)

Plays this sample.

playTimed
int playTimed(int channel, Duration timeLimit, int loops, Duration fadeInTime)

Plays this sample only within a certain time limit.

setVolume
void setVolume(int volume)

Sets the volume this sample plays at.

Meta