Fixed initialisation of tf in file_open(). Without setting the memory to 0,
[cinelerra_cv/mob.git] / cinelerra / aautomation.C
blob60983c2ed01e59a84277263a2a5e8ab205255f80
1 #include "aautomation.h"
2 #include "atrack.inc"
3 #include "colors.h"
4 #include "edl.h"
5 #include "edlsession.h"
6 #include "floatauto.h"
7 #include "floatautos.h"
8 #include "panautos.h"
10 AAutomation::AAutomation(EDL *edl, Track *track)
11  : Automation(edl, track)
17 AAutomation::~AAutomation()
21 int AAutomation::create_objects()
23         Automation::create_objects();
25         autos[AUTOMATION_FADE] = new FloatAutos(edl, track, 0.0);
26         autos[AUTOMATION_FADE]->create_objects();
27         autos[AUTOMATION_FADE]->autoidx = AUTOMATION_FADE;
28         autos[AUTOMATION_FADE]->autogrouptype = AUTOGROUPTYPE_AUDIO_FADE;
32         autos[AUTOMATION_PAN] = new PanAutos(edl, track);
33         autos[AUTOMATION_PAN]->create_objects();
34         autos[AUTOMATION_PAN]->autoidx = AUTOMATION_PAN;
35         autos[AUTOMATION_PAN]->autogrouptype = -1;
37         return 0;