source: ext/midi/timer.h @ 1f40359

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 1f40359 was b60dd4ae, checked in by Paul Brossier <piem@altern.org>, 20 years ago

moved midi functions to ext/

  • Property mode set to 100644
File size: 851 bytes
RevLine 
[96fb8ad]1
2#if defined(WIN32)
3#define aubio_curtime()   GetTickCount()
4
5double aubio_utime(void);
6
7#elif defined(MACOS9)
8#include <OSUtils.h>
9#include <Timer.h>
10
11unsigned int aubio_curtime();
12#define aubio_utime()  0.0
13
14#else
15
16unsigned int aubio_curtime(void);
17double aubio_utime(void);
18
19#endif
20
21/* if the callback function returns 1 the timer will continue; if it
22   returns 0 it will stop */
23typedef int (*aubio_timer_callback_t)(void* data, unsigned int msec);
24
25typedef struct _aubio_timer_t aubio_timer_t;
26
27aubio_timer_t* new_aubio_timer(int msec, aubio_timer_callback_t callback, 
28                        void* data, int new_thread, int auto_destroy);
29
30int delete_aubio_timer(aubio_timer_t* timer);
31int aubio_timer_join(aubio_timer_t* timer);
32int aubio_timer_stop(aubio_timer_t* timer);
33void * aubio_timer_start(void * data);
34void aubio_time_config(void);
Note: See TracBrowser for help on using the repository browser.