BEAST: use BseServer.tick_stamp_from_systime()
authorTim Janik <timj@gnu.org>
Thu, 27 Oct 2016 19:57:35 +0000 (21:57 +0200)
committerTim Janik <timj@gnu.org>
Fri, 28 Oct 2016 00:03:28 +0000 (02:03 +0200)
Signed-off-by: Tim Janik <timj@gnu.org>
beast-gtk/bstwaveeditor.cc

index 2ad236e..9766958 100644 (file)
@@ -6,8 +6,6 @@
 #include       "bstmenus.hh"
 #include       <gdk/gdkkeysyms.h>
 
-extern "C" guint64 bse_engine_tick_stamp_from_systime (guint64 systime); // FIXME
-
 enum {
   SCROLL_NONE  = 0,
   SCROLL_BOTH  = 3,
@@ -369,7 +367,7 @@ playback_marker (gpointer data)
   self = BST_WAVE_EDITOR (data);
   if (self->tick_stamp)
     {
-      SfiNum tick_now = bse_engine_tick_stamp_from_systime (sfi_time_system ()); // FIXME!!!
+      uint64 tick_now = bse_server.tick_stamp_from_systime (sfi_time_system ()); // FIXME!!!
       guint pcm_pos = self->pcm_pos + (tick_now - self->tick_stamp) * self->pcm_per_tick;
       self->ignore_playpos = TRUE;
       gtk_adjustment_set_value (GTK_RANGE (self->qsampler_playpos)->adjustment,