Component describing a sound source.
More...
#include <SoundSource.hpp>
Component describing a sound source.
◆ SoundSource()
| SoundSource::SoundSource |
( |
| ) |
|
◆ ~SoundSource()
| SoundSource::~SoundSource |
( |
| ) |
|
◆ GetPath()
| const std::string & SoundSource::GetPath |
( |
| ) |
const |
Get the path to the sound file to play.
- Returns
- The path to the sound file to play.
◆ Pause()
| void SoundSource::Pause |
( |
| ) |
|
◆ Play()
| void SoundSource::Play |
( |
| ) |
|
◆ Serialize()
| void SoundSource::Serialize |
( |
Json::Value & |
node, |
|
|
bool |
load |
|
) |
| |
|
overridevirtual |
Save or load component values to/from JSON.
- Parameters
-
| node | The JSON node to save to or load from. |
| load | Whether to load (otherwise saves). |
Implements Component::SuperComponent.
◆ SetPath()
| void SoundSource::SetPath |
( |
const std::string & |
path | ) |
|
Set the path to the sound file to play.
@parma path Path to the sound file to play.
◆ Stop()
| void SoundSource::Stop |
( |
| ) |
|
◆ ::SoundManager
◆ gain
| float Component::SoundSource::gain = 1.0f |
◆ loop
| bool Component::SoundSource::loop = false |
Whether the sound should loop.
◆ pitch
| float Component::SoundSource::pitch = 1.0f |
The documentation for this class was generated from the following files: