X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Famodule.h;h=128b280848e9f34378f1d7e1955e019671dd3872;hb=9e3d90a964c0fbe97c0b58235336a47111932d5d;hp=6781d38c63b604735a061c27058bd805097128a0;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/amodule.h b/cinelerra-5.1/cinelerra/amodule.h index 6781d38c..128b2808 100644 --- a/cinelerra-5.1/cinelerra/amodule.h +++ b/cinelerra-5.1/cinelerra/amodule.h @@ -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;