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);
55 class TimeStretchRTScale : public BC_TumbleTextBox
58 TimeStretchRTScale(TimeStretchRTWindow *window,
59 TimeStretchRT *plugin,
64 TimeStretchRT *plugin;
69 class TimeStretchRTSize : public BC_TumbleTextBox
72 TimeStretchRTSize(TimeStretchRTWindow *window, TimeStretchRT *plugin, int x, int y);
76 TimeStretchRT *plugin;
79 class TimeStretchRTWindow : public PluginClientWindow
82 TimeStretchRTWindow(TimeStretchRT *plugin);
83 ~TimeStretchRTWindow();
84 void create_objects();
86 TimeStretchRT *plugin;
87 TimeStretchRTScale *num;
88 TimeStretchRTScale *denom;
89 TimeStretchRTSize *size;
95 class TimeStretchRT : public PluginAClient
98 TimeStretchRT(PluginServer *server);
101 PLUGIN_CLASS_MEMBERS(TimeStretchRTConfig)
103 void save_data(KeyFrame *keyframe);
104 void read_data(KeyFrame *keyframe);
108 int process_buffer(int64_t size,
110 int64_t start_position,
113 TimeStretchEngine *engine;
114 int64_t source_start;
116 int need_reconfigure;