improve delays created by vicon drawing locks, reset_cache segv fix, gang track toolt...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / automation.h
index 47df6eca0859b63ee6f2dc2ebc2fcf7504522462..e25b6376c9d1d26720c57d50d405029a32f4b0ae 100644 (file)
                CLAMP(value, 0, 100);                                   \
        if (autogrouptype == AUTOGROUPTYPE_ZOOM && value < 0)           \
                value = 0;                                              \
-       else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < 0.001) \
-               value = 0.001;
+       else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < SPEED_MIN) \
+               value = SPEED_MIN;
 
 #define AUTOMATIONVIEWCLAMPS(value, autogrouptype)                     \
        if (autogrouptype == AUTOGROUPTYPE_ZOOM && value < 0)           \
                value = 0;                                              \
-       else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < 0)     \
-               value = 0;
+       else if (autogrouptype == AUTOGROUPTYPE_SPEED && value < SPEED_MIN)     \
+               value = SPEED_MIN;
 
 
 class Automation
@@ -62,7 +62,7 @@ public:
        Automation(EDL *edl, Track *track);
        virtual ~Automation();
 
-       int autogrouptype(int autoidx, Track *track);
+       static int autogrouptype(int type, Track *track);
        virtual void create_objects();
        void equivalent_output(Automation *automation, int64_t *result);
        virtual Automation& operator=(Automation& automation);