Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
audioclip.h
1#pragma once
2#include <irrKlang.h>
3#include <entities/entity.h>
4#include <audio/audioplayable.h>
5
6namespace meteor {
7
8#ifndef AUDIOCLIP_H
9#define AUDIOCLIP_H
10 class MAudioPlayable;
17 public:
23 MAudioClip(irrklang::ISoundEngine* engine, std::string clipPath);
31 std::string toString() override;
32 private:
37 std::string getPlayableInstanceId();
38
39 irrklang::ISoundEngine* engine = NULL;
40 irrklang::ISoundSource* baseSrc = NULL;
41 std::string clipPath = "";
42 bool isReady = false;
43 int instanceIdCounter = 0;
44 };
45#endif;
46}
AudioClip is the instance of a audio clip file, this class holds. This class holds basic information ...
Definition audioclip.h:16
MAudioPlayable * createPlayableInstance()
Creates a playable instance of this clip, which can be used to play audio.
MAudioClip(irrklang::ISoundEngine *engine, std::string clipPath)
Constructor.
std::string toString() override
Get this object as a string.
This class is the Playable instance of AudioClip. Provides various playback functions.
Definition audioplayable.h:14
An Entity is the base class for all data and behaviour oriented objects in meteor....
Definition entity.h:9