/*
* CINELERRA
* Copyright (C) 1997-2011 Adam Williams <broadcast at earthling dot net>
- *
+ *
* 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
- *
+ *
*/
#include "bcdisplayinfo.h"
#include "bchash.h"
#include "filexml.h"
#include "language.h"
-#include "cicolors.h"
+#include "bccolors.h"
#include "samples.h"
#include "echo.h"
#include "theme.h"
offset = that.offset;
}
-void EchoConfig::interpolate(EchoConfig &prev, EchoConfig &next,
+void EchoConfig::interpolate(EchoConfig &prev, EchoConfig &next,
int64_t prev_frame, int64_t next_frame, int64_t current_frame)
{
double frames = next_frame - prev_frame;
}
EchoOffset::EchoOffset(EchoWindow *window, int x, int y)
- : BC_FPot(x, y, window->plugin->config.offset, 0, 999)
+ : BC_FPot(x, y, window->plugin->config.offset, 1, 999)
{
this->window = window;
}
void EchoWindow::create_objects()
{
int x = 170, y = 10;
- add_subwindow(level_title=new EchoTitle(5, y + 10, _("Level: "),
+ add_subwindow(level_title=new EchoTitle(5, y + 10, _("Level: "),
plugin->db.fromdb(plugin->config.level)));
add_subwindow(level = new EchoLevel(this, x, y)); y += 25;
add_subwindow(atten_title=new EchoTitle(5, y + 10, _("Atten: "),
plugin->db.fromdb(plugin->config.atten)));
add_subwindow(atten = new EchoAtten(this, x + 35, y)); y += 25;
- add_subwindow(offset_title=new EchoTitle(5, y + 10, _("Offset: "),
+ add_subwindow(offset_title=new EchoTitle(5, y + 10, _("Offset: "),
(int)plugin->config.offset));
add_subwindow(offset = new EchoOffset(this, x, y)); y += 25;
show_window();