diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-09-19 13:25:51 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-09-19 13:25:51 +0100 |
| commit | cb4b17f617e998fb64cf20e13bd05b5f31f240ce (patch) | |
| tree | f9eb2bb15e9d8f207b1512b4da37da7ac991fd52 /rotord/src/graph.h | |
| parent | b57c742e2df5c8f495a3b4dbf4a9e56a4aab9f7e (diff) | |
reduce bit rate
Diffstat (limited to 'rotord/src/graph.h')
| -rw-r--r-- | rotord/src/graph.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h index 58861ac..cc531cd 100644 --- a/rotord/src/graph.h +++ b/rotord/src/graph.h @@ -20,6 +20,7 @@ namespace Rotor { Graph(const string& _uid,const string& _desc){ init(_uid,_desc); audio_loaded=false; + bitRate=1000000; }; void init(const string& _uid,const string& _desc){ uid=_uid; @@ -54,6 +55,13 @@ namespace Rotor { bool print_features(xmlIO &XML,string &node); bool load_audio(const string &filename,vector<Audio_processor*> processors); bool load_video(const string &nodeID,const string &filename);//can be performance or clip + bool set_bitrate(int b){ + if (b>64000){ + bitRate=b; + return true; + } + else return false; + } bool loaded; float duration; float framerate; @@ -63,6 +71,7 @@ namespace Rotor { string audio_filename; bool cancelled; float progress; + int bitRate; private: int outW,outH; |
