Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
All Classes Functions Variables Pages
meteor::MAudioEngine Class Reference

AudioEngine wraps the core audio-engine. Contains helper method to load AudioClip from instance. More...

#include <audioengine.h>

Inheritance diagram for meteor::MAudioEngine:

Static Public Member Functions

static bool Initialise ()
 Initialise the engine.
 
static MAudioClipgetClip (std::string clipPath)
 Load a clip from disk.
 
static void cleanup ()
 Performs cleanup of the audio engine.
 

Additional Inherited Members

- Public Member Functions inherited from meteor::MEntity
virtual bool equals (MEntity *other)
 Checks equality between two entities.
 
std::string getName ()
 
void setName (std::string name)
 Sets name of entity.
 
virtual std::string toString ()
 Get this object as a string.
 
- Protected Attributes inherited from meteor::MEntity
std::string name
 

Detailed Description

AudioEngine wraps the core audio-engine. Contains helper method to load AudioClip from instance.

Member Function Documentation

◆ getClip()

static MAudioClip * meteor::MAudioEngine::getClip ( std::string clipPath)
static

Load a clip from disk.

Parameters
clipPathpath in disk to audio clip file.
Returns
AudioClip instance.

◆ Initialise()

static bool meteor::MAudioEngine::Initialise ( )
static

Initialise the engine.

Returns
true if successful, else false.