summaryrefslogtreecommitdiff
path: root/rotord/src/graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/graph.h')
-rw-r--r--rotord/src/graph.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h
index 60e61db..3267bb3 100644
--- a/rotord/src/graph.h
+++ b/rotord/src/graph.h
@@ -16,7 +16,7 @@ Graph is an instance of a rotor renderer
namespace Rotor {
class Graph{
public:
- Graph(){duration=20.0f;loaded = false;outW=640;outH=360;audio_thumb=new Audio_thumbnailer();};
+ Graph(){duration=20.0f;loaded = false;outW=640;outH=360;audio_thumb=new Audio_thumbnailer();use_fragmentation=true;};
Graph(const string& _uid,const string& _desc){
init(_uid,_desc);
audio_loaded=false;
@@ -62,6 +62,10 @@ namespace Rotor {
}
else return false;
}
+ bool set_fragmentation(bool f){
+ use_fragmentation=f;
+ return true;
+ }
bool loaded;
float duration;
float framerate;
@@ -76,6 +80,7 @@ namespace Rotor {
Audio_thumbnailer *audio_thumb;
private:
int outW,outH;
+ bool use_fragmentation;
};
class Thumbnailer{