X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Famodule.h;h=6781d38c63b604735a061c27058bd805097128a0;hb=83fa73bc0a258573fbbe06965f36dde3f8325688;hp=c1d06380fd6a34c16b54ce85c3c46bb4074c642f;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/amodule.h b/cinelerra-5.1/cinelerra/amodule.h index c1d06380..6781d38c 100644 --- a/cinelerra-5.1/cinelerra/amodule.h +++ b/cinelerra-5.1/cinelerra/amodule.h @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008-2013 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #ifndef AMODULE_H @@ -40,6 +40,7 @@ class AModuleReset; #include "filexml.inc" #include "floatautos.inc" #include "maxchannels.h" +#include "meterhistory.h" #include "module.h" #include "resample.h" #include "samples.inc" @@ -55,7 +56,7 @@ public: // All positions are in source sample rate int read_samples(Samples *buffer, int64_t start, int64_t len); - + AModule *module; // output for nested EDL if resampled Samples *nested_output[MAX_CHANNELS]; @@ -66,8 +67,8 @@ public: class AModule : public Module { public: - AModule(RenderEngine *renderengine, - CommonRender *commonrender, + AModule(RenderEngine *renderengine, + CommonRender *commonrender, PluginArray *plugin_array, Track *track); virtual ~AModule(); @@ -75,7 +76,7 @@ public: void create_objects(); CICache* get_cache(); - int import_samples(AEdit *playable_edit, + int import_samples(AEdit *playable_edit, int64_t start_project, int64_t edit_startproject, int64_t edit_startsource, @@ -85,7 +86,7 @@ public: int64_t fragment_len); - int render(Samples *buffer, + int render(Samples *buffer, int64_t input_len, int64_t input_position, int direction, @@ -102,10 +103,7 @@ public: FloatAutos* get_pan_automation(int channel); // get pan automation FloatAutos* get_fade_automation(); // get the fade automation for this module - - double *level_history; - int64_t *level_samples; - int current_level; + MeterHistory *meter_history; // Temporary buffer for rendering transitions Samples *transition_temp; @@ -124,9 +122,9 @@ public: File *file; // Temporary buffer for rendering a nested audio EDL. -// Sharing nested output between modules wouldn't work because if the -// segment was cut inside input_len, the shared channels would have to -// initialize their EDL's at different starting points and botch their +// Sharing nested output between modules wouldn't work because if the +// segment was cut inside input_len, the shared channels would have to +// initialize their EDL's at different starting points and botch their // starting states. Samples *nested_output[MAX_CHANNELS]; // number of samples allocated