comparison examples/basic_libpd/z_libpd.h @ 342:860c42b3830e prerelease

Updated basic_libpd, now slightly more efficient with less memory operations. Requires the API change in libpd operated in libpd:99a2be8
author Giulio Moro <giuliomoro@yahoo.it>
date Mon, 06 Jun 2016 12:21:38 +0100
parents dbeed520b014
children
comparison
equal deleted inserted replaced
341:7af9c5be3434 342:860c42b3830e
27 EXTERN int libpd_getdollarzero(void *p); 27 EXTERN int libpd_getdollarzero(void *p);
28 28
29 EXTERN int libpd_blocksize(void); 29 EXTERN int libpd_blocksize(void);
30 EXTERN int libpd_init_audio(int inChans, int outChans, int sampleRate); 30 EXTERN int libpd_init_audio(int inChans, int outChans, int sampleRate);
31 EXTERN int libpd_process_raw(const float *inBuffer, float *outBuffer); 31 EXTERN int libpd_process_raw(const float *inBuffer, float *outBuffer);
32 EXTERN t_sample* libpd_get_sys_soundin();
33 EXTERN t_sample* libpd_get_sys_soundout();
34 EXTERN int libpd_process_sys();
32 EXTERN int libpd_process_short(const int ticks, 35 EXTERN int libpd_process_short(const int ticks,
33 const short *inBuffer, short *outBuffer); 36 const short *inBuffer, short *outBuffer);
34 EXTERN int libpd_process_float(int ticks, 37 EXTERN int libpd_process_float(int ticks,
35 const float *inBuffer, float *outBuffer); 38 const float *inBuffer, float *outBuffer);
36 EXTERN int libpd_process_double(int ticks, 39 EXTERN int libpd_process_double(int ticks,
106 EXTERN void libpd_set_pitchbendhook(const t_libpd_pitchbendhook hook); 109 EXTERN void libpd_set_pitchbendhook(const t_libpd_pitchbendhook hook);
107 EXTERN void libpd_set_aftertouchhook(const t_libpd_aftertouchhook hook); 110 EXTERN void libpd_set_aftertouchhook(const t_libpd_aftertouchhook hook);
108 EXTERN void libpd_set_polyaftertouchhook(const t_libpd_polyaftertouchhook hook); 111 EXTERN void libpd_set_polyaftertouchhook(const t_libpd_polyaftertouchhook hook);
109 EXTERN void libpd_set_midibytehook(const t_libpd_midibytehook hook); 112 EXTERN void libpd_set_midibytehook(const t_libpd_midibytehook hook);
110 EXTERN void libpd_sys_microsleep(int sleep); 113 EXTERN void libpd_sys_microsleep(int sleep);
114
111 #ifdef __cplusplus 115 #ifdef __cplusplus
112 } 116 }
113 #endif 117 #endif
114 118
115 #endif 119 #endif