summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniels <niels@dyne.org>2015-08-05 19:22:33 (GMT)
committer niels <niels@dyne.org>2015-08-05 19:22:33 (GMT)
commite320fcd279596d912f18b29003502b0502bb68a5 (patch)
tree3a8138e76b3246f9e3e039d95bc980117de4f7ca
parenta24a1b1a177593aaee99a83e699d568e3f9c2a8e (diff)
set fictious stream length from status tokens
-rw-r--r--veejay-current/veejay-client/src/vj-api.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/veejay-current/veejay-client/src/vj-api.c b/veejay-current/veejay-client/src/vj-api.c
index afad7df..403af85 100644
--- a/veejay-current/veejay-client/src/vj-api.c
+++ b/veejay-current/veejay-client/src/vj-api.c
@@ -2236,10 +2236,9 @@ static void update_curve_widget(const char *name)
else
{
lo = 0;
- hi = get_nums("stream_length");
+ hi = info->status_tokens[SAMPLE_MARKER_END];
}
}
-
update_spin_range( "curve_spinstart", lo, hi, lo );
update_spin_range( "curve_spinend", lo, hi, hi );
@@ -3507,7 +3506,7 @@ static gint load_parameter_info()
}
else
{
- int nl = get_nums("stream_length") + 1 ;
+ int nl = info->status_tokens[SAMPLE_MARKER_END];
update_spin_range( "curve_spinstart", 0, nl, p[ENTRY_KF_START] );
update_spin_range( "curve_spinend", 0,nl, p[ENTRY_KF_END] );
}
@@ -5975,7 +5974,7 @@ static void update_globalinfo(int *history, int pm, int last_pm)
info->sequence_playing = in;
indicate_sequence( TRUE, info->sequencer_view->gui_slot[ info->sequence_playing ] );
}
-
+
total_frames_ = (pm == MODE_STREAM ? info->status_tokens[SAMPLE_MARKER_END] : info->status_tokens[TOTAL_FRAMES] );
gint history_frames_ = (pm == MODE_STREAM ? history[SAMPLE_MARKER_END] : history[TOTAL_FRAMES] );
gint current_frame_ = info->status_tokens[FRAME_NUM];