39 lines
899 B
C
Raw Normal View History

2014-03-18 11:13:00 +01:00
/**
* @author Edouard DUPIN
*
* @copyright 2011, Edouard DUPIN, all right reserved
*
2014-08-08 23:35:47 +02:00
* @license APACHE v2.0 (see license file)
2014-03-18 11:13:00 +01:00
*/
#pragma once
2014-03-18 11:13:00 +01:00
#include <etk/types.h>
2015-04-11 13:20:46 +02:00
#include <audio/ess/effects.h>
#include <audio/ess/music.h>
2014-03-18 11:13:00 +01:00
2015-04-11 13:20:46 +02:00
namespace audio {
namespace ess {
void init();
void unInit();
2015-07-01 21:03:26 +02:00
void soundSetParse(const std::string& _data);
void soundSetLoad(const std::string& _file);
2015-07-01 21:03:26 +02:00
void musicPlay(const std::string& _name);
void musicStop();
void musicSetVolume(float _dB);
float musicGetVolume();
void musicSetMute(bool _mute);
bool musicGetMute();
2015-07-01 21:03:26 +02:00
int32_t effectGetId(const std::string& _name);
void effectPlay(int32_t _id, const vec3& _pos=vec3(0,0,0));
void effectPlay(const std::string& _name, const vec3& _pos=vec3(0,0,0));
void effectSetVolume(float _dB);
float effectGetVolume();
void effectSetMute(bool _mute);
bool effectGetMute();
2015-04-11 13:20:46 +02:00
}
}
2014-03-18 11:13:00 +01:00