Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
SoundResource Class Reference

Represents a generic sound resource in the audio engine. This class serves as a base for specific sound implementations. More...

#include <sound_resource.h>

Inheritance diagram for SoundResource:
[legend]

Public Member Functions

 SoundResource (std::string name, std::string file_path, SoundType type=SoundType::GENERIC)
 
virtual ~SoundResource ()=default
 
const SoundTypetype () const noexcept
 
const std::string & name () const noexcept
 
const std::string & file_path () const noexcept
 

Protected Attributes

SoundType type_
 
std::string name_
 
std::string file_path_
 

Detailed Description

Represents a generic sound resource in the audio engine. This class serves as a base for specific sound implementations.

Constructor & Destructor Documentation

◆ SoundResource()

SoundResource::SoundResource ( std::string  name,
std::string  file_path,
SoundType  type = SoundType::GENERIC 
)

◆ ~SoundResource()

virtual SoundResource::~SoundResource ( )
virtualdefault

Member Function Documentation

◆ file_path()

const std::string & SoundResource::file_path ( ) const
noexcept

◆ name()

const std::string & SoundResource::name ( ) const
noexcept

◆ type()

const SoundType & SoundResource::type ( ) const
noexcept

Member Data Documentation

◆ file_path_

std::string SoundResource::file_path_
protected

◆ name_

std::string SoundResource::name_
protected

◆ type_

SoundType SoundResource::type_
protected

The documentation for this class was generated from the following file: