bsd lang segv fix, enable bsd lv2, lv2 gui enable fix, proxy/ffmpeg toggle resize...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / aautomation.C
index 2e1d07c1a3ff4c70d00a7be4f929578a449ede3c..3b58cad65914515034410c0b2a08ee86822dc5a1 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "aautomation.h"
 #include "atrack.inc"
-#include "colors.h"
+#include "bccolors.h"
 #include "edl.h"
 #include "edlsession.h"
 #include "floatauto.h"
@@ -45,11 +45,16 @@ void AAutomation::create_objects()
 
        autos[AUTOMATION_FADE] = new FloatAutos(edl, track, 0.0);
        autos[AUTOMATION_FADE]->create_objects();
-       autos[AUTOMATION_FADE]->autoidx = AUTOMATION_FADE;
-       autos[AUTOMATION_FADE]->autogrouptype = AUTOGROUPTYPE_AUDIO_FADE;
+
+       autos[AUTOMATION_SPEED] = new FloatAutos(edl, track, 1.0);
+       autos[AUTOMATION_SPEED]->create_objects();
 
        autos[AUTOMATION_PAN] = new PanAutos(edl, track);
        autos[AUTOMATION_PAN]->create_objects();
-       autos[AUTOMATION_PAN]->autoidx = AUTOMATION_PAN;
-       autos[AUTOMATION_PAN]->autogrouptype = -1;
+
+       for(int i = 0; i < AUTOMATION_TOTAL; i++) {
+               if( !autos[i] ) continue;
+               autos[i]->autoidx = i;
+               autos[i]->autogrouptype = autogrouptype(i, autos[i]->track);
+       }
 }