|
Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
|
Represents a SDL-specific resource. Inherits from the generic SoundResource class and contains SDL-specific audio data. More...
#include <sdl_sound_resource.h>
Public Member Functions | |
| SDLSoundResource (const std::string &name, const std::string &file_path, SoundType type=SoundType::SDL_MIXER) | |
| ~SDLSoundResource () override=default | |
| const SDL_AudioSpec & | audio_spec () const |
| const Uint8 * | audio_buffer () const |
| Uint32 | length () const |
Public Member Functions inherited from SoundResource | |
| SoundResource (std::string name, std::string file_path, SoundType type=SoundType::GENERIC) | |
| virtual | ~SoundResource ()=default |
| const SoundType & | type () const noexcept |
| const std::string & | name () const noexcept |
| const std::string & | file_path () const noexcept |
Additional Inherited Members | |
Protected Attributes inherited from SoundResource | |
| SoundType | type_ |
| std::string | name_ |
| std::string | file_path_ |
Represents a SDL-specific resource. Inherits from the generic SoundResource class and contains SDL-specific audio data.
| SDLSoundResource::SDLSoundResource | ( | const std::string & | name, |
| const std::string & | file_path, | ||
| SoundType | type = SoundType::SDL_MIXER |
||
| ) |
|
overridedefault |
| const Uint8 * SDLSoundResource::audio_buffer | ( | ) | const |
| const SDL_AudioSpec & SDLSoundResource::audio_spec | ( | ) | const |
| Uint32 SDLSoundResource::length | ( | ) | const |