86 std::shared_ptr<
std::vector<
float>> buffer;
92 std::weak_ptr<Sound> sound;
An audio channel, different channels could be for example: "Music", "Speech" and "Sound Effects".
Sound loaded from an OGG or MP3 file.
A sound which can be positioned in the stereo field.
SoundPanning()
Creates an empty object on which all methods do nothing.
bool isPlaying() const
Whether the sound has been started (using setPanning) and is still playing.
void setPanning(float panning)
Set the stereo position, the first call starts playing the sound.
void setVolume(float volume)
Set volume in [0, ∞].
~SoundPanning()
Stops the sound.
void stop()
Stops the sound. If it hasn't been started yet, it won't start anymore.