Factory class for creating SoundResource instances based on SoundType. The reason for shared pointers is to manage the lifetime of sound resources and instances easily share them across different parts of the audio system without worrying about ownership.
More...
#include <sound_factory.h>
Factory class for creating SoundResource instances based on SoundType. The reason for shared pointers is to manage the lifetime of sound resources and instances easily share them across different parts of the audio system without worrying about ownership.
◆ SoundFactory()
| SoundFactory::SoundFactory |
( |
| ) |
|
|
delete |
◆ ~SoundFactory()
| SoundFactory::~SoundFactory |
( |
| ) |
|
|
delete |
◆ create_sound_instance()
| static std::unique_ptr< SoundInstance > SoundFactory::create_sound_instance |
( |
std::shared_ptr< SoundResource > & |
resource, |
|
|
float |
volume = 1.0f |
|
) |
| |
|
static |
◆ create_sound_resource()
The documentation for this class was generated from the following file: