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

Represents a SDL-specific resource. Inherits from the generic SoundResource class and contains SDL-specific audio data. More...

#include <sdl_sound_resource.h>

Inheritance diagram for SDLSoundResource:
[legend]

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 SoundTypetype () 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_
 

Detailed Description

Represents a SDL-specific resource. Inherits from the generic SoundResource class and contains SDL-specific audio data.

Constructor & Destructor Documentation

◆ SDLSoundResource()

SDLSoundResource::SDLSoundResource ( const std::string &  name,
const std::string &  file_path,
SoundType  type = SoundType::SDL_MIXER 
)

◆ ~SDLSoundResource()

SDLSoundResource::~SDLSoundResource ( )
overridedefault

Member Function Documentation

◆ audio_buffer()

const Uint8 * SDLSoundResource::audio_buffer ( ) const

◆ audio_spec()

const SDL_AudioSpec & SDLSoundResource::audio_spec ( ) const

◆ length()

Uint32 SDLSoundResource::length ( ) const

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