CAMLprim value caml_bjack_set_position(value d, value pos_type, value position) { CAMLparam3(d,pos_type,position); JACK_SetPosition(Bjack_drv_val(d),Int_val(pos_type),Int_val(position)); CAMLreturn(Val_unit); }
/* current playing position of the mp3 */ static void jack_flush(int ms_offset_time) { TRACE("setting values for ms_offset_time of %d\n", ms_offset_time); JACK_Reset(driver); /* flush buffers and set state to STOPPED */ /* update the internal driver values to correspond to the input time given */ JACK_SetPosition(driver, MILLISECONDS, ms_offset_time); if (paused) JACK_SetState(driver, PAUSED); else JACK_SetState(driver, PLAYING); }