[DEV] update to ne new ejson API (remove helper)

This commit is contained in:
Edouard DUPIN 2016-04-28 23:46:12 +02:00
parent 19c847f066
commit 5f191a3e34

View File

@ -15,9 +15,6 @@
#include <audio/ess/debug.h>
#include <ejson/ejson.h>
#undef __class__
#define __class__ "audio::ess"
std::shared_ptr<audio::river::Manager> g_audioManager;
std::shared_ptr<audio::ess::Effects> g_effects;
std::shared_ptr<audio::ess::Music> g_music;
@ -41,7 +38,7 @@ void audio::ess::soundSetParse(const std::string& _data) {
if ( obj.exist() == true
&& g_music != nullptr) {
for (auto &it : obj.getKeys()) {
std::string file = obj.getStringValue(it);
std::string file = obj[it].toString().get();
EWOLSA_INFO("load Music : '" << it << "' file=" << file);
g_music->load(file, it);
}
@ -50,7 +47,7 @@ void audio::ess::soundSetParse(const std::string& _data) {
if ( obj.exist() == true
&& g_effects != nullptr) {
for (auto &it : obj.getKeys()) {
std::string file = obj.getStringValue(it);
std::string file = obj[it].toString().get();
EWOLSA_INFO("load Effect : '" << it << "' file=" << file);
g_effects->load(file, it);
}