add haupauge-1657 dual usb capture support, add deinterlace to recordmonitor, asset...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / amodule.h
index 6781d38c63b604735a061c27058bd805097128a0..128b280848e9f34378f1d7e1955e019671dd3872 100644 (file)
@@ -55,7 +55,8 @@ public:
        ~AModuleResample();
 
 // All positions are in source sample rate
-       int read_samples(Samples *buffer, int64_t start, int64_t len);
+       int read_samples(Samples *buffer,
+               int64_t start, int64_t len, int direction);
 
        AModule *module;
 // output for nested EDL if resampled
@@ -77,21 +78,13 @@ public:
        CICache* get_cache();
 
        int import_samples(AEdit *playable_edit,
-               int64_t start_project,
-               int64_t edit_startproject,
-               int64_t edit_startsource,
-               int direction,
-               int sample_rate,
-               Samples *buffer,
-               int64_t fragment_len);
-
-
+               int64_t start_project, int64_t edit_startproject, int64_t edit_startsource,
+               int direction, int sample_rate, Samples *buffer, int64_t fragment_len);
        int render(Samples *buffer,
-               int64_t input_len,
-               int64_t input_position,
-               int direction,
-               int sample_rate,
-               int use_nudge);
+               int64_t input_len, int64_t input_position, int direction,
+               int sample_rate, int use_nudge);
+       int read_samples(Samples *buffer,
+               int64_t start, int64_t len, int direction);
        int get_buffer_size();
 
        AttachmentPoint* new_attachment(Plugin *plugin);
@@ -109,10 +102,6 @@ public:
        Samples *transition_temp;
 // Temporary buffer for rendering speed curve
        Samples *speed_temp;
-// Previous buffers for rendering speed curve
-#define SPEED_OVERLAP 4
-       double prev_head[SPEED_OVERLAP];
-       double prev_tail[SPEED_OVERLAP];
 
 // Pointer to an asset for the resampler
        Asset *asset;