From 04fab81523580eab750eca56bc3e196ccd6b521c Mon Sep 17 00:00:00 2001 From: "Jerome Blanchi aka d.j.a.y" Date: Mon, 17 Jun 2019 18:05:48 +0200 Subject: [PATCH] Reloaded3 - fix sample record calculation --- veejay-current/veejay-client/src/callback.c | 5 +++-- veejay-current/veejay-client/src/callback.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/veejay-current/veejay-client/src/callback.c b/veejay-current/veejay-client/src/callback.c index f54d7755c..44457a57a 100644 --- a/veejay-current/veejay-client/src/callback.c +++ b/veejay-current/veejay-client/src/callback.c @@ -32,8 +32,9 @@ static int bg_[4]; static int fg_[4]; static int ln_[4]; -static int sample_calctime(); +static inline int sample_calctime(int nframes); static int sample_calctime_selection(); +static int sample_calctime_mulloop(); static void change_box_color_rgb( GtkWidget *box, int r, int g, int b,int a, int fill ); @@ -1621,7 +1622,7 @@ void on_button_sample_recordstart_clicked(GtkWidget *widget, gpointer user_data) if( is_button_toggled( "sample_mulloop" ) ) { - int base = sample_calctime(); + int base = sample_calctime_mulloop(); n_frames = base * dur_val; multi_vims( VIMS_SAMPLE_CLEAR_MARKER, "%d", 0 ); } diff --git a/veejay-current/veejay-client/src/callback.h b/veejay-current/veejay-client/src/callback.h index c6f92f012..5db1cb915 100644 --- a/veejay-current/veejay-client/src/callback.h +++ b/veejay-current/veejay-client/src/callback.h @@ -46,7 +46,6 @@ update_label_str( "value_friendlyname", _effect_get_hint( entry_tokens[ENTRY_FXI }\ } -/*int sample_calctime();*/ void text_defaults(); gboolean boxbg_draw ( GtkWidget *w, cairo_t *cr);