Represents an instance of a generic sound within the audio system. The reason for separating SoundInstance from SoundResource is to allow multiple instances of the same sound resource to be played simultaneously with different settings (e.g., volume, loop).
More...
#include <sound_instance.h>
Represents an instance of a generic sound within the audio system. The reason for separating SoundInstance from SoundResource is to allow multiple instances of the same sound resource to be played simultaneously with different settings (e.g., volume, loop).
◆ SoundInstance()
| SoundInstance::SoundInstance |
( |
std::shared_ptr< SoundResource > |
resource, |
|
|
float |
volume = 1.0f |
|
) |
| |
|
explicit |
◆ ~SoundInstance()
| virtual SoundInstance::~SoundInstance |
( |
| ) |
|
|
virtualdefault |
◆ finished() [1/2]
| bool SoundInstance::finished |
( |
| ) |
const |
|
noexcept |
◆ finished() [2/2]
| void SoundInstance::finished |
( |
bool |
finished | ) |
|
|
noexcept |
◆ is_finished()
| virtual bool SoundInstance::is_finished |
( |
| ) |
|
|
virtual |
◆ is_paused()
| virtual bool SoundInstance::is_paused |
( |
| ) |
const |
|
virtualnoexcept |
◆ is_playing()
| virtual bool SoundInstance::is_playing |
( |
| ) |
const |
|
virtualnoexcept |
◆ loop() [1/2]
| bool SoundInstance::loop |
( |
| ) |
const |
|
noexcept |
◆ loop() [2/2]
| void SoundInstance::loop |
( |
bool |
loop | ) |
|
|
noexcept |
◆ pause()
| virtual void SoundInstance::pause |
( |
| ) |
|
|
inlinevirtual |
◆ play()
| virtual void SoundInstance::play |
( |
| ) |
|
|
inlinevirtual |
◆ resource()
| const std::shared_ptr< SoundResource > & SoundInstance::resource |
( |
| ) |
const |
|
noexcept |
◆ resume()
| virtual void SoundInstance::resume |
( |
| ) |
|
|
inlinevirtual |
◆ stop()
| virtual void SoundInstance::stop |
( |
| ) |
|
|
inlinevirtual |
◆ volume() [1/2]
| float SoundInstance::volume |
( |
| ) |
const |
|
noexcept |
◆ volume() [2/2]
| void SoundInstance::volume |
( |
float |
volume | ) |
|
|
noexcept |
◆ finished_
| bool SoundInstance::finished_ {false} |
|
protected |
◆ loop_
| bool SoundInstance::loop_ {false} |
|
protected |
◆ paused_
| bool SoundInstance::paused_ {false} |
|
protected |
◆ playing_
| bool SoundInstance::playing_ {false} |
|
protected |
◆ resource_
◆ volume_
| float SoundInstance::volume_ {1.0f} |
|
protected |
The documentation for this class was generated from the following file: