clock_scheduler_main_callback   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm

Implementation

(bind-func clock_scheduler_main_callback
  (let ((hz:double 500.0)
        (evtlist:SchedEvt{double}* null)
        (ft:[void,double]* null)
        (scheduler:[i64,double]* null)
        (running:i64 1)
        (time 0.0)
        (err 0)
        (i (/ 1.0 hz)))
    (lambda ()
      (set! scheduler (scheduler_init evtlist ft))
      (set! time (clock_clock))
      (while (> running 0)
        (scheduler time)
        (while (< (clock_clock) time) (thread_sleep 0 100000))
        (set! time (+ time i))
        void)
      void)))


Back to Index

Similar Entries

  • -clock:metro-from-host-    scheme
  • -clock:metro-from-host-    scheme
  • PaStreamCallbackTimeInfo_print    xtlang
  • PaStreamCallbackTimeInfo_toString    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _gst_main_loop_call    xtlang
  • arrows_clockspin_heads    xtlang
  • audio_callback:PaStreamCallback    xtlang
  • audio_callback:PaStreamCallback    xtlang
  • beat_scheduler    xtlang
  • callback    scheme
  • callback-adapter    scheme
  • callback-test2-helper    xtlang
  • callback_goodbye_world    xtlang
  • callback_hello_world    xtlang
  • cerberus_main_cc    xtlang
  • clock->samples    scheme
  • clock-client-receive    scheme
  • clock-runsync    scheme
  • clock-server-receive    scheme
  • clock-set-bpm    scheme
  • clock-set-cycle    scheme
  • clock:offset-from-server    scheme
  • clock:sync-adjust    scheme
  • clock:update-metro    scheme
  • clock:update-metro    scheme
  • clock_scheduler    xtlang
  • clock_test_a    xtlang
  • clock_test_b    xtlang
  • curl_write_callback    xtlang
  • decompose_domain    xtlang
  • get_main_frame    xtlang
  • get_midi_evt_clocktime    xtlang
  • glfw_char_callback:GLFWcharfun    xtlang
  • glfw_cursor_position_callback:GLFWcursorposfun    xtlang
  • glfw_error_callback:GLFWerrorfun    xtlang
  • glfw_key_callback:GLFWkeyfun    xtlang
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang
  • glfw_window_focus_callback:GLFWwindowfocusfun    xtlang
  • glfw_window_position_callback:GLFWwindowposfun    xtlang
  • glib-main-loop    scheme
  • glib-main-loop    scheme
  • glib_main_loop    xtlang
  • gst-main-loop    scheme
  • gui_window_size_callback    xtlang
  • impc:ir:compiler:callback    scheme
  • impc:ti:callback    scheme
  • impc:ti:callback-check    scheme
  • join-clock-time    scheme
  • listener-callback    scheme
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • mainLoop    xtlang
  • mainLoop    xtlang
  • main_cc    xtlang
  • main_gain    xtlang
  • main_reverb    xtlang
  • rtmidi_default_callback:RtMidiCCallback    xtlang
  • rtmidi_register_callback    xtlang
  • run_main_event_loop    xtlang
  • samples->clock    scheme
  • scheduler_at    xtlang
  • scheduler_evt    xtlang
  • scheduler_init    xtlang
  • set_dl_main    xtlang
  • split-clock-time    scheme
  • start_midi_scheduler    xtlang
  • topclock-bpm    scheme
  • topclock-election    scheme
  • topclock-receive    scheme
  • topclock-streamer    scheme
  • topclock-sync    scheme
  • topclock-variable    scheme
  • toplap-clock-election    scheme
  • toplap-clock-sync    scheme