Mountain  1.0.0
Simple C++ 2D Game Framework
Mountain::AudioSource Class Reference
+ Inheritance diagram for Mountain::AudioSource:
+ Collaboration diagram for Mountain::AudioSource:

Public Member Functions

MOUNTAIN_API void Added () override
 Called when the component is added to an Entity.
 
MOUNTAIN_API void Update () override
 Updates the component.
 
MOUNTAIN_API void Play ()
 
MOUNTAIN_API void Play (AudioTrack &track)
 
MOUNTAIN_API void SetBuffer (const AudioBuffer *buffer)
 
MOUNTAIN_API float_t GetVolume () const
 
MOUNTAIN_API void SetVolume (float_t newVolume)
 
MOUNTAIN_API float_t GetPitch () const
 
MOUNTAIN_API void SetPitch (float_t newPitch)
 
MOUNTAIN_API bool_t GetLooping () const
 
MOUNTAIN_API void SetLooping (bool_t newLooping)
 
- Public Member Functions inherited from Mountain::Component
virtual void Removed ()
 Called when the component is removed from an Entity.
 
virtual void Render ()
 Renders the component.
 
virtual void DebugRender ()
 
const EntityGetEntity () const
 Get the Entity on which this Component is attached.
 
EntityGetEntity ()
 Get the Entity on which this Component is attached.
 

Public Attributes

Pointer< AudioTrackaudioTrack
 

Additional Inherited Members

- Protected Attributes inherited from Mountain::Component
Entitym_Entity = nullptr
 Entity bound to the component.
 

Detailed Description

Definition at line 12 of file audio_source.hpp.


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