Simulant  21.06-50
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Friends | List of all members
smlt::AudioSource Class Reference
Inheritance diagram for smlt::AudioSource:
smlt::Actor smlt::Camera smlt::Geom smlt::MeshInstancer smlt::ParticleSystem smlt::Sprite

Public Member Functions

 AudioSource (Window *window)
 
 AudioSource (Stage *stage, StageNode *this_as_node, SoundDriver *driver)
 
PlayingSoundID play_sound (SoundPtr sound_id, AudioRepeat repeat=AUDIO_REPEAT_NONE, DistanceModel model=DISTANCE_MODEL_DEFAULT)
 
bool stop_sound (PlayingSoundID sound_id)
 
uint8_t playing_sound_count () const
 
uint8_t played_sound_count () const
 
bool is_sound_playing () const
 
void update_source (float dt)
 
sig::signal< void()> & signal_stream_finished ()
 
void set_gain (RangeValue< 0, 1 > gain)
 
void set_pitch (RangeValue< 0, 1 > pitch)
 
void set_reference_distance (float dist)
 

Friends

class Sound
 
class PlayingSound
 

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