X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fdelayaudio%2Fdelayaudio.C;h=22c32f62f5115e91330e13c8008e1cbe2570f892;hp=561b29e13e5039b6acdca662cc96f960eda81ade;hb=HEAD;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;ds=sidebyside diff --git a/cinelerra-5.1/plugins/delayaudio/delayaudio.C b/cinelerra-5.1/plugins/delayaudio/delayaudio.C index 561b29e1..9396db81 100644 --- a/cinelerra-5.1/plugins/delayaudio/delayaudio.C +++ b/cinelerra-5.1/plugins/delayaudio/delayaudio.C @@ -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, 285, 80, 285, 80, 0) + : PluginClientWindow(plugin, xS(200), yS(80), xS(200), yS(80), 0) { this->plugin = plugin; } @@ -216,12 +216,14 @@ DelayAudioWindow::~DelayAudioWindow() void DelayAudioWindow::create_objects() { - add_subwindow(new BC_Title(10, 10, _("Delay seconds:"))); + int xs10 = xS(10); + int ys10 = yS(10), ys40 = yS(40); + add_subwindow(new BC_Title(xs10, ys10, _("Delay seconds:"))); length = new DelayAudioTextBox( plugin, this, - 10, - 40); + xs10, + ys40); length->create_objects(); update_gui(); show_window();