Andrew contribution to add preference method for Fast/Slow speed
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / transportque.h
index 2594594ff7a4723b180b8d84d023cdc64b134a3f..fcfc1703154d613b7a90741d1ae85ce6685c5ea3 100644 (file)
 #include "condition.inc"
 #include "edl.inc"
 #include "playbackengine.inc"
+#include "preferences.inc"
 #include "transportque.inc"
 
 class TransportCommand
 {
 public:
-       TransportCommand();
+       TransportCommand(Preferences *preferences);
        ~TransportCommand();
 
        void reset();
@@ -41,7 +42,7 @@ public:
        void set_playback_range(EDL *edl, int use_inout, int do_displacement);
        static int single_frame(int command);
        static int get_direction(int command);
-       static float get_speed(int command, float speed=0);
+       float get_speed(int command, float speed=0);
 
 // Adjust playback range with in/out points for rendering
        void playback_range_adjust_inout();
@@ -84,6 +85,7 @@ public:
 private:
 // Copied to render engines
        EDL *edl;
+       Preferences *preferences;
 };
 
 #endif