supertux
Public Member Functions | List of all members
SoundSource Class Referenceabstract

A sound source represents the source of audio output. More...

#include <sound_source.hpp>

Inheritance diagram for SoundSource:
Inheritance graph
[legend]

Public Member Functions

virtual void play ()=0
 
virtual void stop (bool unload_buffer=true)=0
 
virtual void pause ()=0
 
virtual bool playing () const =0
 
virtual void set_looping (bool looping)=0
 
virtual void set_relative (bool relative)=0
 
virtual void set_gain (float gain)=0
 Set volume (0.0 is silent, 1.0 is normal)
 
virtual void set_pitch (float pitch)=0
 
virtual void set_position (const Vector &position)=0
 
virtual void set_velocity (const Vector &velocity)=0
 
virtual void set_reference_distance (float distance)=0
 

Detailed Description

A sound source represents the source of audio output.

You can place sources at certain points in your world or set their velocity to produce doppler effects


The documentation for this class was generated from the following file: