CAMLprim value caml_bjack_reset(value device) { CAMLparam1(device); JACK_Reset(Bjack_drv_val(device)); CAMLreturn(Val_unit); }
/* Close the device */ static void jack_close(void) { aud_set_int ("jack", "volume_left", jack_cfg.volume_left); aud_set_int ("jack", "volume_right", jack_cfg.volume_right); JACK_Reset(driver); /* flush buffers, reset position and set state to STOPPED */ TRACE("resetting driver, not closing now, destructor will close for us\n"); }
/* 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); }