17 #ifndef HEADER_SUPERTUX_AUDIO_SOUND_SOURCE_HPP 18 #define HEADER_SUPERTUX_AUDIO_SOUND_SOURCE_HPP 20 #include "math/fwd.hpp" 31 virtual void play() = 0;
32 virtual void stop(
bool unload_buffer =
true) = 0;
33 virtual void pause() = 0;
34 virtual bool playing()
const = 0;
36 virtual void set_looping(
bool looping) = 0;
37 virtual void set_relative(
bool relative) = 0;
39 virtual void set_gain(
float gain) = 0;
40 virtual void set_pitch(
float pitch) = 0;
41 virtual void set_position(
const Vector& position) = 0;
42 virtual void set_velocity(
const Vector& velocity) = 0;
43 virtual void set_reference_distance(
float distance) = 0;
A sound source represents the source of audio output.
Definition: sound_source.hpp:25
virtual void set_gain(float gain)=0
Set volume (0.0 is silent, 1.0 is normal)