Mountain  1.0.0
Simple C++ 2D Game Framework
Mountain::AudioTrack Class Reference
+ Inheritance diagram for Mountain::AudioTrack:
+ Collaboration diagram for Mountain::AudioTrack:

Public Member Functions

MOUNTAIN_API bool_t SetSourceData (const uint8_t *buffer, int64_t length) override
 
MOUNTAIN_API void Load () override
 
MOUNTAIN_API void Unload () override
 
MOUNTAIN_API void ResetSourceData () override
 
template<typename T = uint8_t>
const TGetData () const
 Gets the raw data of the texture. More...
 
template<typename T = uint8_t>
TGetData ()
 Gets the raw data of the texture. More...
 
MOUNTAIN_API int32_t GetDataSize () const
 
MOUNTAIN_API uint16_t GetChannels () const
 
MOUNTAIN_API int32_t GetSampleRate () const
 
MOUNTAIN_API uint16_t GetBitDepth () const
 
MOUNTAIN_API const AudioBufferGetBuffer () const
 
MOUNTAIN_API AudioTrackFormat GetFormat () const
 

Static Public Attributes

static MOUNTAIN_API constexpr std::array FileExtensions
 Allowed extensions for audio files. More...
 

Detailed Description

Definition at line 16 of file audio_track.hpp.

Member Function Documentation

◆ GetData() [1/2]

template<typename T = uint8_t>
const T* Mountain::AudioTrack::GetData ( ) const

Gets the raw data of the texture.

Template Parameters
TType
Returns
Data

◆ GetData() [2/2]

template<typename T = uint8_t>
T* Mountain::AudioTrack::GetData ( )

Gets the raw data of the texture.

Template Parameters
TType
Returns
Data

Member Data Documentation

◆ FileExtensions

MOUNTAIN_API constexpr std::array Mountain::AudioTrack::FileExtensions
static
Initial value:
{
".wav",
".wave",
".mp3",
".ogg"
}

Allowed extensions for audio files.

Definition at line 21 of file audio_track.hpp.


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