Simulant  21.12-574
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Friends | List of all members
smlt::PlayingSound Class Reference
Inheritance diagram for smlt::PlayingSound:
smlt::RefCounted< PlayingSound > smlt::TwoPhaseConstructed

Public Member Functions

 PlayingSound (AudioSource &parent, std::weak_ptr< Sound > sound, AudioRepeat loop_stream, DistanceModel model=DISTANCE_MODEL_POSITIONAL)
 
PlayingSoundID id () const
 
void update (float dt)
 
void stop ()
 
bool is_playing () const
 
void set_stream_func (StreamFunc func)
 
bool is_dead () const
 
void set_gain (RangeValue< 0, 1 > gain)
 
void set_pitch (RangeValue< 0, 1 > pitch)
 
void set_reference_distance (float dist)
 
- Public Member Functions inherited from smlt::TwoPhaseConstructed
virtual bool init ()
 
virtual void clean_up ()
 

Friends

class AudioSource
 

Additional Inherited Members

- Public Types inherited from smlt::RefCounted< PlayingSound >
typedef std::shared_ptr< PlayingSoundptr
 
typedef std::weak_ptr< PlayingSoundwptr
 
- Static Public Member Functions inherited from smlt::RefCounted< PlayingSound >
static RefCounted< PlayingSound >::ptr create (Args &&... args)
 
static RefCounted< PlayingSound >::ptr create ()
 
- Protected Member Functions inherited from smlt::RefCounted< PlayingSound >
 RefCounted (Args &&...)
 

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