SoundStream

Implements a simple way for audio playback, through the use of SDL2_mixer.

It's simple to use, but very limited and will be deprecated. PixelPerfect.audio will implement a system for plugin-based audio playback, with MIDI 2.0 support.

Only one instance should be used.

Constructors

this
this()

Default CTOR.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

halt
void halt(int channel)

Halts the playback on the specified channel.

play
void play(int number, int channel, int loops)

Plays a sound sample from the bank at the specified channel. Can be looped.

Variables

soundBank
Mix_Chunk*[int] soundBank;

The sound samples stored within this class.

Meta