Simulant  21.06-50
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 start ()
 
void update (float dt)
 
void stop ()
 
bool is_playing () const
 
void set_stream_func (StreamFunc func)
 
bool is_dead () const
 
- 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: