Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / resamplert / resamplert.C
index af6c4ab6a773a7b1c42e8f639a10a4ee3fb2fb4e..2b3b98d5fdc61b0ca967c76c88cc65e96ed1f3f1 100644 (file)
@@ -79,10 +79,10 @@ void ResampleRTConfig::boundaries()
 
 ResampleRTWindow::ResampleRTWindow(ResampleRT *plugin)
  : PluginClientWindow(plugin,
 
 ResampleRTWindow::ResampleRTWindow(ResampleRT *plugin)
  : PluginClientWindow(plugin,
-       210,
-       160,
-       200,
-       160,
+       xS(180),
+       yS(110),
+       xS(180),
+       yS(110),
        0)
 {
        this->plugin = plugin;
        0)
 {
        this->plugin = plugin;
@@ -182,8 +182,7 @@ ResampleRTResample::ResampleRTResample(ResampleRT *plugin)
 // To get the keyframes to work, resampling is always done in the forward
 // direction with the plugin converting to reverse.
 int ResampleRTResample::read_samples(Samples *buffer,
 // To get the keyframes to work, resampling is always done in the forward
 // direction with the plugin converting to reverse.
 int ResampleRTResample::read_samples(Samples *buffer,
-       int64_t start,
-       int64_t len)
+       int64_t start, int64_t len, int direction)
 {
        int result = plugin->read_samples(buffer,
                0,
 {
        int result = plugin->read_samples(buffer,
                0,