CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::AudioResource< T > Class Template Reference

A audio resource. More...

#include <CeresEngine/Audio/AudioResource.hpp>

Inheritance diagram for CeresEngine::AudioResource< T >:
CeresEngine::AbstractAudioResource

Additional Inherited Members

- Public Types inherited from CeresEngine::AbstractAudioResource
using Sample = unsigned short
 A audio sample type.
 
using Samples = Vector< Sample >
 A collection of multiple audio samples.
 
using SampleIndex = unsigned int
 A type representing the index of a sample.
 
using SampleOffset = int
 A type representing a sample offset.
 
- Public Member Functions inherited from CeresEngine::AbstractAudioResource
virtual ~AbstractAudioResource ()=default
 
virtual const AudioMetadatagetMetadata () const =0
 
virtual AudioResourceType getType () const =0
 
bool isClip () const
 
AudioClipasClip ()
 
const AudioClipasClip () const
 
bool isStream () const
 
AudioStreamasStream ()
 
const AudioStreamasStream () const
 

Detailed Description

template<typename T>
class CeresEngine::AudioResource< T >

A audio resource.

This resource can be templated on T with a audio resource specialization

Template Parameters
Tthe specialized audio resource type
Sthe audio sample type

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