no longer need ffmpeg patch0 which was for Termux
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / delayaudio / delayaudio.C
index 7fa8af607a8deb21876298561f6a756f86067328..9396db817d5fd07c8e5f3c3e1e67c166abdd138a 100644 (file)
@@ -136,8 +136,7 @@ void DelayAudio::reconfigure()
 
        if(buffer)
        {
-               int size = MIN(new_allocation, allocation);
-
+               int size = new_allocation;
                memcpy(new_buffer->get_data(),
                        buffer->get_data(),
                        (size - PluginClient::in_buffer_size) * sizeof(double));
@@ -154,7 +153,8 @@ int DelayAudio::process_realtime(int64_t size, Samples *input_ptr, Samples *outp
 {
 
        load_configuration();
-       if(need_reconfigure) reconfigure();
+//     if(need_reconfigure) reconfigure();
+       reconfigure();
 
 // printf("DelayAudio::process_realtime %d %d\n",
 // input_start, size);
@@ -205,7 +205,7 @@ void DelayAudio::update_gui()
 
 
 DelayAudioWindow::DelayAudioWindow(DelayAudio *plugin)
- : PluginClientWindow(plugin, xS(285), yS(80), xS(285), yS(80), 0)
+ : PluginClientWindow(plugin, xS(200), yS(80), xS(200), yS(80), 0)
 {
        this->plugin = plugin;
 }