00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef HEADER_SUPERTUX_AUDIO_SOUND_SOURCE_HPP
00018 #define HEADER_SUPERTUX_AUDIO_SOUND_SOURCE_HPP
00019
00020 class Vector;
00021
00027 class SoundSource
00028 {
00029 public:
00030 virtual ~SoundSource()
00031 { }
00032
00033 virtual void play() = 0;
00034 virtual void stop() = 0;
00035 virtual bool playing() = 0;
00036
00037 virtual void set_looping(bool looping) = 0;
00038 virtual void set_relative(bool relative) = 0;
00040 virtual void set_gain(float gain) = 0;
00041 virtual void set_pitch(float pitch) = 0;
00042 virtual void set_position(const Vector& position) = 0;
00043 virtual void set_velocity(const Vector& velocity) = 0;
00044 virtual void set_reference_distance(float distance) = 0;
00045 };
00046
00047 #endif
00048
00049