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_resource.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <memory>
6#include <string>
7
13 public:
14 SoundResource(std::string name, std::string file_path,
16 virtual ~SoundResource() = default;
17
18 [[nodiscard]] const SoundType& type() const noexcept;
19 [[nodiscard]] const std::string& name() const noexcept;
20 [[nodiscard]] const std::string& file_path() const noexcept;
21
22 protected:
24 std::string name_;
25 std::string file_path_;
26};
Represents a generic sound resource in the audio engine. This class serves as a base for specific sou...
Definition sound_resource.h:12
std::string file_path_
Definition sound_resource.h:25
SoundResource(std::string name, std::string file_path, SoundType type=SoundType::GENERIC)
SoundType type_
Definition sound_resource.h:23
const std::string & name() const noexcept
virtual ~SoundResource()=default
std::string name_
Definition sound_resource.h:24
const SoundType & type() const noexcept
const std::string & file_path() const noexcept
SoundType
Definition sound_type.h:5