RemoteSceneManager(std::shared_ptr<OSSIA::Device> ptr): m_dev{ptr} { setupGlobal(); setupListener(); setupSources(); on_sourceAdded(new OSSIA::String("ASound")); auto node = getNode(m_sourcesListNode, "ASound"); auto enabled = getNode(node, "enabled"); enabled->getAddress()->pushValue(new OSSIA::Bool(true)); auto file = getNode(node, "file"); file->getAddress()->pushValue(new OSSIA::String("snd1.wav")); /* new std::thread([&] () { while(true) { std::this_thread::sleep_for(std::chrono::milliseconds(10)); auto pos = m_scene.listener().Position(); pos[1] += 5; qDebug() << pos.y(); m_scene.listener().Position(pos); } }); */ }
SourceManager::SourceManager() { findScriptsDB(); setupSources(); }