Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
sound_factory.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <memory>
8#include <string>
9
17 public:
18 SoundFactory() = delete;
19 ~SoundFactory() = delete;
20
21 static std::shared_ptr<SoundResource> create_sound_resource(
22 const std::string& file_path, const std::string& name,
24 static std::unique_ptr<SoundInstance> create_sound_instance(
25 std::shared_ptr<SoundResource>& resource, float volume = 1.0f);
26};
Factory class for creating SoundResource instances based on SoundType. The reason for shared pointers...
Definition sound_factory.h:16
static std::unique_ptr< SoundInstance > create_sound_instance(std::shared_ptr< SoundResource > &resource, float volume=1.0f)
~SoundFactory()=delete
static std::shared_ptr< SoundResource > create_sound_resource(const std::string &file_path, const std::string &name, SoundType type=SoundType::GENERIC)
SoundFactory()=delete
SoundType
Definition sound_type.h:5