diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-09-02 15:18:40 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-09-02 15:18:40 +0100 |
| commit | eb6cbcd58f2f1142cab49a54283b290ecb9e0a4a (patch) | |
| tree | 646763240e61b8cfe11b30ebe4ea36d1b16ec2b6 /rotord/src/rotor.h | |
| parent | c5085b5a31c1e25bf83ae910710996863531f8b2 (diff) | |
load audio from graph
Diffstat (limited to 'rotord/src/rotor.h')
| -rwxr-xr-x | rotord/src/rotor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index e96fffd..a769430 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -14,6 +14,7 @@ #include "Poco/Net/HTTPResponse.h" #include "Poco/Logger.h" +#include "Poco/File.h" #include "Poco/Path.h" #include "Poco/Base64Encoder.h" #include "Poco/FileStream.h" @@ -1107,6 +1108,7 @@ namespace Rotor { Graph(){duration=20.0f;loaded = false;outW=640;outH=360;}; Graph(const string& _uid,const string& _desc){ init(_uid,_desc); + audio_loaded=false; }; void init(const string& _uid,const string& _desc){ uid=_uid; @@ -1121,22 +1123,26 @@ namespace Rotor { vector<Node*> find_nodes(const string &type); //could be a way of finding a set based on capabilities? Node* find_node(const string &type); bool signal_render(string &signal_xml,const float framerate); - bool video_render(const string &output_filename,const string &audio_filename,const float framerate,float& progress); + bool video_render(const string &output_filename,const float framerate,float& progress); bool load(string data,string media_path); bool loadFile(string &filename,string media_path); bool parseXml(string media_path); bool parseJson(string &data,string &media_path); bool set_resolution(int w,int h); bool preview(xmlIO &XML,string &node,string &format,int frame,int w,int h); + bool check_audio(string audio,string path); bool print_features(xmlIO &XML,string &node); bool loaded; float duration; float framerate; const string toString(); xmlIO xml; + bool audio_loaded; + string audio_filename; private: Node_factory factory; int outW,outH; + }; class Audio_thumbnailer: public Audio_processor { public: |
