virtual Vector3f getVelocity() const =0
get the velocity of the music
virtual void setVolume(float volume)=0
set the volume of the music
virtual void pause()=0
Suspends playback without touching the position.
virtual float getVolume() const =0
get the volume of the music
virtual void setTime(float position)=0
Set the time of the music in seconds.
virtual bool getLoop() const =0
get if the music is looping or not
virtual ~IMusic()=default
virtual void setVelocity(Vector3f velocity)=0
set the velocity of the music, used by backends that apply a doppler effect
virtual float getLength() const =0
Get the Length of the music.
virtual void setLoop(bool loop)=0
set the music to loop or not
virtual float getTime() const =0
Get the current time of the music in seconds.
virtual void stop()=0
Stops playback AND rewinds to zero.
virtual bool isReady() const =0
virtual void update()=0
Must be called every frame.
virtual void setPosition(Vector3f position)=0
set the 3D position of the music, for backends that spatialize against a listener....
virtual Vector3f getPosition() const =0
get the 3D position of the music
virtual void play()=0
Starts playback.