Added typedefs for containers
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#ifndef CHARGE_AUDIO_BASE_H
|
#ifndef CHARGE_AUDIO_BASE_H
|
||||||
#define CHARGE_AUDIO_BASE_H
|
#define CHARGE_AUDIO_BASE_H
|
||||||
#include <Corrade/Containers/Containers.h>
|
#include <Corrade/Containers/Containers.h>
|
||||||
|
#include <Corrade/Containers/Pointer.h>
|
||||||
#include <Magnum/Magnum.h>
|
#include <Magnum/Magnum.h>
|
||||||
#include <Magnum/Math/Vector.h>
|
#include <Magnum/Math/Vector.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
@@ -12,6 +13,9 @@ namespace _ma {
|
|||||||
}
|
}
|
||||||
using namespace Corrade;
|
using namespace Corrade;
|
||||||
using namespace _ma;
|
using namespace _ma;
|
||||||
|
|
||||||
|
typedef Containers::Pointer<class Sound> SoundContainer;
|
||||||
|
typedef Containers::Pointer<class Listener> ListenerContainer;
|
||||||
class Sound {
|
class Sound {
|
||||||
public:
|
public:
|
||||||
enum SoundState { Idle, Playing, Paused, Finished };
|
enum SoundState { Idle, Playing, Paused, Finished };
|
||||||
@@ -65,9 +69,8 @@ public:
|
|||||||
~Engine();
|
~Engine();
|
||||||
|
|
||||||
// Creating tools
|
// Creating tools
|
||||||
Containers::Pointer<Sound> CreateSound(std::string filepath,
|
SoundContainer CreateSound(std::string filepath, bool streamFile = false);
|
||||||
bool streamFile = false);
|
ListenerContainer CreateListener();
|
||||||
Containers::Pointer<Listener> CreateListener();
|
|
||||||
|
|
||||||
void SetVolume(float value);
|
void SetVolume(float value);
|
||||||
float GetVolume();
|
float GetVolume();
|
||||||
|
Reference in New Issue
Block a user