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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h
index cc531cd..60e61db 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;};
+ Graph(){duration=20.0f;loaded = false;outW=640;outH=360;audio_thumb=new Audio_thumbnailer();};
Graph(const string& _uid,const string& _desc){
init(_uid,_desc);
audio_loaded=false;
@@ -29,7 +29,7 @@ namespace Rotor {
framerate=25.0f;
cancelled=false;
};
- ~Graph(){ clear(); };
+ ~Graph(){ clear(); delete audio_thumb;};
void clear(){
for (auto n: nodes) {
delete n.second;
@@ -72,6 +72,8 @@ namespace Rotor {
bool cancelled;
float progress;
int bitRate;
+
+ Audio_thumbnailer *audio_thumb;
private:
int outW,outH;