4 * Copyright (C) 2011 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include "pluginaclient.h"
29 #include "../timestretch/timestretchengine.inc"
34 class TimeStretchRTWindow;
36 class TimeStretchRTConfig
39 TimeStretchRTConfig();
41 int equivalent(TimeStretchRTConfig &src);
42 void copy_from(TimeStretchRTConfig &src);
43 void interpolate(TimeStretchRTConfig &prev,
44 TimeStretchRTConfig &next,
47 int64_t current_frame);
53 class TimeStretchRTScale : public BC_TumbleTextBox
56 TimeStretchRTScale(TimeStretchRTWindow *window,
57 TimeStretchRT *plugin,
61 TimeStretchRT *plugin;
65 class TimeStretchRTSize : public BC_TumbleTextBox
68 TimeStretchRTSize(TimeStretchRTWindow *window, TimeStretchRT *plugin, int x, int y);
72 TimeStretchRT *plugin;
75 class TimeStretchRTWindow : public PluginClientWindow
78 TimeStretchRTWindow(TimeStretchRT *plugin);
79 ~TimeStretchRTWindow();
80 void create_objects();
82 TimeStretchRT *plugin;
83 TimeStretchRTScale *scale;
84 TimeStretchRTSize *size;
90 class TimeStretchRT : public PluginAClient
93 TimeStretchRT(PluginServer *server);
96 PLUGIN_CLASS_MEMBERS(TimeStretchRTConfig)
98 void save_data(KeyFrame *keyframe);
99 void read_data(KeyFrame *keyframe);
103 int process_buffer(int64_t size,
105 int64_t start_position,
108 TimeStretchEngine *engine;
109 int64_t source_start;
111 int need_reconfigure;