Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
shkyera::Audio Class Reference

Audio asset that manages a single audio file. More...

#include <Audio.hpp>

Public Member Functions

 Audio (const std::filesystem::path &path)
 
 ~Audio ()
 
 Audio (const Audio &)=delete
 
Audiooperator= (const Audio &)=delete
 
 Audio (Audio &&other) noexcept
 
Audiooperator= (Audio &&other) noexcept
 
ma_decodergetDecoder ()
 

Private Attributes

std::unique_ptr< ma_decoder_decoder
 Internal miniaudio decoder.
 

Detailed Description

Audio asset that manages a single audio file.

Constructor & Destructor Documentation

◆ Audio() [1/3]

shkyera::Audio::Audio ( const std::filesystem::path &  path)
explicit
Parameters
pathPath to the audio file

◆ ~Audio()

shkyera::Audio::~Audio ( )

◆ Audio() [2/3]

shkyera::Audio::Audio ( const Audio )
delete

◆ Audio() [3/3]

shkyera::Audio::Audio ( Audio &&  other)
noexcept

Member Function Documentation

◆ getDecoder()

ma_decoder * shkyera::Audio::getDecoder ( )
Returns
Pointer to the miniaudio decoder for this audio file

◆ operator=() [1/2]

Audio & shkyera::Audio::operator= ( Audio &&  other)
noexcept

◆ operator=() [2/2]

Audio & shkyera::Audio::operator= ( const Audio )
delete

Member Data Documentation

◆ _decoder

std::unique_ptr<ma_decoder> shkyera::Audio::_decoder
private

Internal miniaudio decoder.


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