Carpenter Engine
A C++ game engine with a build once run anywhere solution
|
An abstract C++ class used to hold the information of an audio file. More...
#include <Audio.hpp>
Public Member Functions | |
Audio (const char *filename) | |
Default constructor. | |
void | Play () |
Plays the audio file. | |
Protected Attributes | |
const char * | m_filename |
An abstract C++ class used to hold the information of an audio file.
Wraps the JS class game.Audio
into a C++ class usable within the C++ framework
This gets derived into two different classes that should be used instead:
Engine::Audio::Sound
which plays a multi-threaded impulseEngine::Audio::Music
which queues itself into the music player of the engine if it is not queued yet