From 6ae7506f595d45e752ffd0cebb6392c707db2d3c Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 20 Jan 2014 15:39:23 +0000 Subject: making json loader --- NT/src/graph.cpp | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) (limited to 'NT/src/graph.cpp') diff --git a/NT/src/graph.cpp b/NT/src/graph.cpp index 50aaa0c..6c8ccf2 100644 --- a/NT/src/graph.cpp +++ b/NT/src/graph.cpp @@ -1,4 +1,76 @@ #include "graph.h" +using namespace Rotor; +using namespace std; +bool Graph::check_audio(string audio,string path){ + if (audio!="") { + audio_filename=path+audio; + Poco::File f=Poco::File(audio_filename); + if (f.exists()) { + //here we should check the audio is actually valid + audio_loaded=true; + cerr<<"Rotor: loading "<vars){ + + } + nodes[node_id]=node; + } + else cerr << "ERROR: duplicate node '"<