giuliomoro@230: /* Copyright (c) 1997-1999 Miller Puckette. giuliomoro@230: * For information on usage and redistribution, and for a DISCLAIMER OF ALL giuliomoro@230: * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ giuliomoro@230: giuliomoro@230: /* Audio and MIDI I/O, and other scheduling and system stuff. */ giuliomoro@230: giuliomoro@230: /* NOTE: this file describes Pd implementation details which may change giuliomoro@230: in future releases. The public (stable) API is in m_pd.h. */ giuliomoro@230: giuliomoro@230: /* in s_path.c */ giuliomoro@230: giuliomoro@230: typedef struct _namelist /* element in a linked list of stored strings */ giuliomoro@230: { giuliomoro@230: struct _namelist *nl_next; /* next in list */ giuliomoro@230: char *nl_string; /* the string */ giuliomoro@230: } t_namelist; giuliomoro@230: giuliomoro@230: t_namelist *namelist_append(t_namelist *listwas, const char *s, int allowdup); giuliomoro@230: t_namelist *namelist_append_files(t_namelist *listwas, const char *s); giuliomoro@230: void namelist_free(t_namelist *listwas); giuliomoro@230: char *namelist_get(t_namelist *namelist, int n); giuliomoro@230: void sys_setextrapath(const char *p); giuliomoro@230: extern int sys_usestdpath; giuliomoro@230: extern t_namelist *sys_externlist; giuliomoro@230: extern t_namelist *sys_searchpath; giuliomoro@230: extern t_namelist *sys_helppath; giuliomoro@230: int sys_open_absolute(const char *name, const char* ext, giuliomoro@230: char *dirresult, char **nameresult, unsigned int size, int bin, int *fdp); giuliomoro@230: int sys_trytoopenone(const char *dir, const char *name, const char* ext, giuliomoro@230: char *dirresult, char **nameresult, unsigned int size, int bin); giuliomoro@230: t_symbol *sys_decodedialog(t_symbol *s); giuliomoro@230: giuliomoro@230: /* s_file.c */ giuliomoro@230: giuliomoro@230: void sys_loadpreferences( void); giuliomoro@230: void sys_savepreferences( void); giuliomoro@230: extern int sys_defeatrt; giuliomoro@230: extern t_symbol *sys_flags; giuliomoro@230: giuliomoro@230: /* s_main.c */ giuliomoro@230: extern int sys_debuglevel; giuliomoro@230: extern int sys_verbose; giuliomoro@230: extern int sys_noloadbang; giuliomoro@230: extern int sys_nogui; giuliomoro@230: extern char *sys_guicmd; giuliomoro@230: giuliomoro@230: EXTERN int sys_nearestfontsize(int fontsize); giuliomoro@230: EXTERN int sys_hostfontsize(int fontsize); giuliomoro@230: giuliomoro@230: extern int sys_defaultfont; giuliomoro@230: EXTERN t_symbol *sys_libdir; /* library directory for auxilliary files */ giuliomoro@230: extern t_symbol *sys_guidir; /* directory holding pd_gui, u_pdsend, etc */ giuliomoro@230: giuliomoro@230: /* s_loader.c */ giuliomoro@230: giuliomoro@230: typedef int (*loader_t)(t_canvas *canvas, char *classname); /* callback type */ giuliomoro@230: EXTERN int sys_load_lib(t_canvas *canvas, char *filename); giuliomoro@230: EXTERN void sys_register_loader(loader_t loader); giuliomoro@230: giuliomoro@230: /* s_audio.c */ giuliomoro@230: giuliomoro@230: #define SENDDACS_NO 0 /* return values for sys_send_dacs() */ giuliomoro@230: #define SENDDACS_YES 1 giuliomoro@230: #define SENDDACS_SLEPT 2 giuliomoro@230: giuliomoro@230: #define DEFDACBLKSIZE 8 giuliomoro@230: extern int sys_schedblocksize; /* audio block size for scheduler */ giuliomoro@230: extern int sys_hipriority; /* real-time flag, true if priority boosted */ giuliomoro@230: EXTERN t_sample *sys_soundout; giuliomoro@230: EXTERN t_sample *sys_soundin; giuliomoro@230: extern int sys_inchannels; giuliomoro@230: extern int sys_outchannels; giuliomoro@230: extern int sys_advance_samples; /* scheduler advance in samples */ giuliomoro@230: extern int sys_blocksize; /* audio I/O block size in sample frames */ giuliomoro@230: extern t_float sys_dacsr; giuliomoro@230: extern int sys_schedadvance; giuliomoro@230: extern int sys_sleepgrain; giuliomoro@230: EXTERN void sys_set_audio_settings(int naudioindev, int *audioindev, giuliomoro@230: int nchindev, int *chindev, giuliomoro@230: int naudiooutdev, int *audiooutdev, int nchoutdev, int *choutdev, giuliomoro@230: int srate, int advance, int callback, int blocksize); giuliomoro@230: /* the same as above, but reopens the audio subsystem if needed */ giuliomoro@230: EXTERN void sys_set_audio_settings_reopen(int naudioindev, int *audioindev, giuliomoro@230: int nchindev, int *chindev, giuliomoro@230: int naudiooutdev, int *audiooutdev, int nchoutdev, int *choutdev, giuliomoro@230: int srate, int advance, int callback, int blocksize); giuliomoro@230: EXTERN void sys_reopen_audio( void); giuliomoro@230: EXTERN void sys_close_audio(void); giuliomoro@230: /* return true if the interface prefers always being open (ala jack) : */ giuliomoro@230: EXTERN int audio_shouldkeepopen( void); giuliomoro@230: EXTERN int audio_isopen( void); /* true if audio interface is open */ giuliomoro@230: EXTERN int sys_audiodevnametonumber(int output, const char *name); giuliomoro@230: EXTERN void sys_audiodevnumbertoname(int output, int devno, char *name, giuliomoro@230: int namesize); giuliomoro@230: giuliomoro@230: int sys_send_dacs(void); giuliomoro@230: void sys_reportidle(void); giuliomoro@230: void sys_set_priority(int higher); giuliomoro@230: void sys_audiobuf(int nbufs); giuliomoro@230: void sys_getmeters(t_sample *inmax, t_sample *outmax); giuliomoro@230: void sys_listdevs(void); giuliomoro@230: void sys_setblocksize(int n); giuliomoro@230: giuliomoro@230: EXTERN void sys_get_audio_devs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int *canmulti, int *cancallback, giuliomoro@230: int maxndev, int devdescsize); giuliomoro@230: EXTERN void sys_get_audio_apis(char *buf); giuliomoro@230: giuliomoro@230: /* s_midi.c */ giuliomoro@230: #define MAXMIDIINDEV 16 /* max. number of input ports */ giuliomoro@230: #define MAXMIDIOUTDEV 16 /* max. number of output ports */ giuliomoro@230: extern int sys_midiapi; giuliomoro@230: extern int sys_nmidiin; giuliomoro@230: extern int sys_nmidiout; giuliomoro@230: extern int sys_midiindevlist[]; giuliomoro@230: extern int sys_midioutdevlist[]; giuliomoro@230: giuliomoro@230: EXTERN void sys_open_midi(int nmidiin, int *midiinvec, giuliomoro@230: int nmidiout, int *midioutvec, int enable); giuliomoro@230: giuliomoro@230: EXTERN void sys_get_midi_apis(char *buf); giuliomoro@230: EXTERN void sys_get_midi_devs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, giuliomoro@230: int maxndev, int devdescsize); giuliomoro@230: EXTERN void sys_get_midi_params(int *pnmidiindev, int *pmidiindev, giuliomoro@230: int *pnmidioutdev, int *pmidioutdev); giuliomoro@230: EXTERN int sys_mididevnametonumber(int output, const char *name); giuliomoro@230: EXTERN void sys_mididevnumbertoname(int output, int devno, char *name, giuliomoro@230: int namesize); giuliomoro@230: giuliomoro@230: EXTERN void sys_reopen_midi( void); giuliomoro@230: EXTERN void sys_close_midi( void); giuliomoro@230: EXTERN void sys_putmidimess(int portno, int a, int b, int c); giuliomoro@230: EXTERN void sys_putmidibyte(int portno, int a); giuliomoro@230: EXTERN void sys_poll_midi(void); giuliomoro@230: EXTERN void sys_setmiditimediff(double inbuftime, double outbuftime); giuliomoro@230: EXTERN void sys_midibytein(int portno, int byte); giuliomoro@230: giuliomoro@230: /* implemented in the system dependent MIDI code (s_midi_pm.c, etc. ) */ giuliomoro@230: void midi_getdevs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int maxndev, int devdescsize); giuliomoro@230: void sys_do_open_midi(int nmidiindev, int *midiindev, giuliomoro@230: int nmidioutdev, int *midioutdev); giuliomoro@230: giuliomoro@230: #ifdef USEAPI_ALSA giuliomoro@230: EXTERN void sys_alsa_putmidimess(int portno, int a, int b, int c); giuliomoro@230: EXTERN void sys_alsa_putmidibyte(int portno, int a); giuliomoro@230: EXTERN void sys_alsa_poll_midi(void); giuliomoro@230: EXTERN void sys_alsa_setmiditimediff(double inbuftime, double outbuftime); giuliomoro@230: EXTERN void sys_alsa_midibytein(int portno, int byte); giuliomoro@230: EXTERN void sys_alsa_close_midi( void); giuliomoro@230: giuliomoro@230: giuliomoro@230: /* implemented in the system dependent MIDI code (s_midi_pm.c, etc. ) */ giuliomoro@230: void midi_alsa_getdevs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int maxndev, int devdescsize); giuliomoro@230: void sys_alsa_do_open_midi(int nmidiindev, int *midiindev, giuliomoro@230: int nmidioutdev, int *midioutdev); giuliomoro@230: #endif giuliomoro@230: giuliomoro@230: /* m_sched.c */ giuliomoro@230: EXTERN void sys_log_error(int type); giuliomoro@230: #define ERR_NOTHING 0 giuliomoro@230: #define ERR_ADCSLEPT 1 giuliomoro@230: #define ERR_DACSLEPT 2 giuliomoro@230: #define ERR_RESYNC 3 giuliomoro@230: #define ERR_DATALATE 4 giuliomoro@230: giuliomoro@230: #define SCHED_AUDIO_NONE 0 giuliomoro@230: #define SCHED_AUDIO_POLL 1 giuliomoro@230: #define SCHED_AUDIO_CALLBACK 2 giuliomoro@230: void sched_set_using_audio(int flag); giuliomoro@230: giuliomoro@230: /* s_inter.c */ giuliomoro@230: giuliomoro@230: EXTERN void sys_microsleep(int microsec); giuliomoro@230: EXTERN void sys_init_fdpoll(void); giuliomoro@230: giuliomoro@230: EXTERN void sys_bail(int exitcode); giuliomoro@230: EXTERN int sys_pollgui(void); giuliomoro@230: giuliomoro@230: EXTERN_STRUCT _socketreceiver; giuliomoro@230: #define t_socketreceiver struct _socketreceiver giuliomoro@230: giuliomoro@230: typedef void (*t_socketnotifier)(void *x, int n); giuliomoro@230: typedef void (*t_socketreceivefn)(void *x, t_binbuf *b); giuliomoro@230: giuliomoro@230: EXTERN t_socketreceiver *socketreceiver_new(void *owner, giuliomoro@230: t_socketnotifier notifier, t_socketreceivefn socketreceivefn, int udp); giuliomoro@230: EXTERN void socketreceiver_read(t_socketreceiver *x, int fd); giuliomoro@230: EXTERN void sys_sockerror(char *s); giuliomoro@230: EXTERN void sys_closesocket(int fd); giuliomoro@230: giuliomoro@230: typedef void (*t_fdpollfn)(void *ptr, int fd); giuliomoro@230: EXTERN void sys_addpollfn(int fd, t_fdpollfn fn, void *ptr); giuliomoro@230: EXTERN void sys_rmpollfn(int fd); giuliomoro@230: #if defined(USEAPI_OSS) || defined(USEAPI_ALSA) giuliomoro@230: void sys_setalarm(int microsec); giuliomoro@230: #endif giuliomoro@230: giuliomoro@230: #define API_NONE 0 giuliomoro@230: #define API_ALSA 1 giuliomoro@230: #define API_OSS 2 giuliomoro@230: #define API_MMIO 3 giuliomoro@230: #define API_PORTAUDIO 4 giuliomoro@230: #define API_JACK 5 giuliomoro@230: #define API_SGI 6 /* gone */ giuliomoro@230: #define API_AUDIOUNIT 7 giuliomoro@230: #define API_ESD 8 /* no idea what this was, probably gone now */ giuliomoro@230: #define API_DUMMY 9 giuliomoro@230: giuliomoro@230: /* figure out which API should be the default. The one we judge most giuliomoro@230: likely to offer a working device takes precedence so that if you giuliomoro@230: start up Pd for the first time there's a reasonable chance you'll have giuliomoro@230: sound. (You'd think portaudio would be best but it seems to default giuliomoro@230: to jack on linux, and and on Windows we only use it for ASIO). giuliomoro@230: If nobody shows up, define DUMMY and make it the default.*/ giuliomoro@230: #if defined(USEAPI_MMIO) giuliomoro@230: # define API_DEFAULT API_MMIO giuliomoro@230: # define API_DEFSTRING "MMIO" giuliomoro@230: #elif defined(USEAPI_ALSA) giuliomoro@230: # define API_DEFAULT API_ALSA giuliomoro@230: # define API_DEFSTRING "ALSA" giuliomoro@230: #elif defined(USEAPI_OSS) giuliomoro@230: # define API_DEFAULT API_OSS giuliomoro@230: # define API_DEFSTRING "OSS" giuliomoro@230: #elif defined(USEAPI_AUDIOUNIT) giuliomoro@230: # define API_DEFAULT API_AUDIOUNIT giuliomoro@230: # define API_DEFSTRING "AudioUnit" giuliomoro@230: #elif defined(USEAPI_ESD) giuliomoro@230: # define API_DEFAULT API_ESD giuliomoro@230: # define API_DEFSTRING "ESD (?)" giuliomoro@230: #elif defined(USEAPI_PORTAUDIO) giuliomoro@230: # define API_DEFAULT API_PORTAUDIO giuliomoro@230: # define API_DEFSTRING "portaudio" giuliomoro@230: #elif defined(USEAPI_JACK) giuliomoro@230: # define API_DEFAULT API_JACK giuliomoro@230: # define API_DEFSTRING "Jack audio connection kit" giuliomoro@230: #else giuliomoro@230: # ifndef USEAPI_DUMMY /* we need at least one so bring in the dummy */ giuliomoro@230: # define USEAPI_DUMMY giuliomoro@230: # endif /* USEAPI_DUMMY */ giuliomoro@230: # define API_DEFAULT API_DUMMY giuliomoro@230: # define API_DEFSTRING "dummy audio" giuliomoro@230: #endif giuliomoro@230: giuliomoro@230: #define DEFAULTAUDIODEV 0 giuliomoro@230: giuliomoro@230: #define MAXAUDIOINDEV 4 giuliomoro@230: #define MAXAUDIOOUTDEV 4 giuliomoro@230: giuliomoro@230: #define DEFMIDIDEV 0 giuliomoro@230: giuliomoro@230: #define DEFAULTSRATE 44100 giuliomoro@230: #ifdef _WIN32 giuliomoro@230: #define DEFAULTADVANCE 80 giuliomoro@230: #else giuliomoro@230: #ifdef __APPLE__ giuliomoro@230: #define DEFAULTADVANCE 5 /* this is in addition to their own delay */ giuliomoro@230: #else giuliomoro@230: #define DEFAULTADVANCE 25 giuliomoro@230: #endif giuliomoro@230: #endif giuliomoro@230: giuliomoro@230: typedef void (*t_audiocallback)(void); giuliomoro@230: giuliomoro@230: int pa_open_audio(int inchans, int outchans, int rate, t_sample *soundin, giuliomoro@230: t_sample *soundout, int framesperbuf, int nbuffers, giuliomoro@230: int indeviceno, int outdeviceno, t_audiocallback callback); giuliomoro@230: void pa_close_audio(void); giuliomoro@230: int pa_send_dacs(void); giuliomoro@230: void sys_reportidle(void); giuliomoro@230: void pa_listdevs(void); giuliomoro@230: void pa_getdevs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int *canmulti, giuliomoro@230: int maxndev, int devdescsize); giuliomoro@230: giuliomoro@230: int oss_open_audio(int naudioindev, int *audioindev, int nchindev, giuliomoro@230: int *chindev, int naudiooutdev, int *audiooutdev, int nchoutdev, giuliomoro@230: int *choutdev, int rate, int blocksize); giuliomoro@230: void oss_close_audio(void); giuliomoro@230: int oss_send_dacs(void); giuliomoro@230: void oss_reportidle(void); giuliomoro@230: void oss_getdevs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int *canmulti, giuliomoro@230: int maxndev, int devdescsize); giuliomoro@230: giuliomoro@230: int alsa_open_audio(int naudioindev, int *audioindev, int nchindev, giuliomoro@230: int *chindev, int naudiooutdev, int *audiooutdev, int nchoutdev, giuliomoro@230: int *choutdev, int rate, int blocksize); giuliomoro@230: void alsa_close_audio(void); giuliomoro@230: int alsa_send_dacs(void); giuliomoro@230: void alsa_reportidle(void); giuliomoro@230: void alsa_getdevs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int *canmulti, giuliomoro@230: int maxndev, int devdescsize); giuliomoro@230: giuliomoro@230: int jack_open_audio(int wantinchans, int wantoutchans, int srate, giuliomoro@230: t_audiocallback callback); giuliomoro@230: void jack_close_audio(void); giuliomoro@230: int jack_send_dacs(void); giuliomoro@230: void jack_reportidle(void); giuliomoro@230: void jack_getdevs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int *canmulti, giuliomoro@230: int maxndev, int devdescsize); giuliomoro@230: void jack_listdevs(void); giuliomoro@230: giuliomoro@230: int mmio_open_audio(int naudioindev, int *audioindev, giuliomoro@230: int nchindev, int *chindev, int naudiooutdev, int *audiooutdev, giuliomoro@230: int nchoutdev, int *choutdev, int rate, int blocksize); giuliomoro@230: void mmio_close_audio( void); giuliomoro@230: void mmio_reportidle(void); giuliomoro@230: int mmio_send_dacs(void); giuliomoro@230: void mmio_getdevs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int *canmulti, giuliomoro@230: int maxndev, int devdescsize); giuliomoro@230: giuliomoro@230: int audiounit_open_audio(int naudioindev, int *audioindev, int nchindev, giuliomoro@230: int *chindev, int naudiooutdev, int *audiooutdev, int nchoutdev, giuliomoro@230: int *choutdev, int rate); giuliomoro@230: void audiounit_close_audio(void); giuliomoro@230: int audiounit_send_dacs(void); giuliomoro@230: void audiounit_listdevs(void); giuliomoro@230: void audiounit_getdevs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int *canmulti, giuliomoro@230: int maxndev, int devdescsize); giuliomoro@230: giuliomoro@230: int esd_open_audio(int naudioindev, int *audioindev, int nchindev, giuliomoro@230: int *chindev, int naudiooutdev, int *audiooutdev, int nchoutdev, giuliomoro@230: int *choutdev, int rate); giuliomoro@230: void esd_close_audio(void); giuliomoro@230: int esd_send_dacs(void); giuliomoro@230: void esd_listdevs(void); giuliomoro@230: void esd_getdevs(char *indevlist, int *nindevs, giuliomoro@230: char *outdevlist, int *noutdevs, int *canmulti, giuliomoro@230: int maxndev, int devdescsize); giuliomoro@230: giuliomoro@230: int dummy_open_audio(int nin, int nout, int sr); giuliomoro@230: int dummy_close_audio( void); giuliomoro@230: int dummy_send_dacs( void); giuliomoro@230: void dummy_getdevs(char *indevlist, int *nindevs, char *outdevlist, giuliomoro@230: int *noutdevs, int *canmulti, int maxndev, int devdescsize); giuliomoro@230: void dummy_listdevs( void); giuliomoro@230: giuliomoro@230: void sys_listmididevs(void); giuliomoro@230: EXTERN void sys_set_midi_api(int whichapi); giuliomoro@230: EXTERN void sys_set_audio_api(int whichapi); giuliomoro@230: EXTERN int sys_audioapi; giuliomoro@230: EXTERN void sys_set_audio_state(int onoff); giuliomoro@230: giuliomoro@230: /* API dependent audio flags and settings */ giuliomoro@230: void oss_set32bit( void); giuliomoro@230: void linux_alsa_devname(char *devname); giuliomoro@230: giuliomoro@230: EXTERN void sys_get_audio_params( giuliomoro@230: int *pnaudioindev, int *paudioindev, int *chindev, giuliomoro@230: int *pnaudiooutdev, int *paudiooutdev, int *choutdev, giuliomoro@230: int *prate, int *padvance, int *callback, int *blocksize); giuliomoro@230: void sys_save_audio_params( giuliomoro@230: int naudioindev, int *audioindev, int *chindev, giuliomoro@230: int naudiooutdev, int *audiooutdev, int *choutdev, giuliomoro@230: int rate, int advance, int callback, int blocksize); giuliomoro@230: giuliomoro@230: /* s_file.c */ giuliomoro@230: giuliomoro@230: typedef void (*t_printhook)(const char *s); giuliomoro@230: extern t_printhook sys_printhook; /* set this to override printing */ giuliomoro@230: extern int sys_printtostderr; giuliomoro@230: giuliomoro@230: /* jsarlo { */ giuliomoro@230: giuliomoro@230: EXTERN double sys_time; giuliomoro@230: EXTERN double sys_time_per_dsp_tick; giuliomoro@230: EXTERN int sys_externalschedlib; giuliomoro@230: giuliomoro@230: EXTERN t_sample* get_sys_soundout(void ) ; giuliomoro@230: EXTERN t_sample* get_sys_soundin(void ) ; giuliomoro@230: EXTERN int* get_sys_main_advance(void ) ; giuliomoro@230: EXTERN double* get_sys_time_per_dsp_tick(void ) ; giuliomoro@230: EXTERN int* get_sys_schedblocksize(void ) ; giuliomoro@230: EXTERN double* get_sys_time(void ) ; giuliomoro@230: EXTERN t_float* get_sys_dacsr(void ) ; giuliomoro@230: EXTERN int* get_sys_sleepgrain(void ) ; giuliomoro@230: EXTERN int* get_sys_schedadvance(void ) ; giuliomoro@230: giuliomoro@230: EXTERN void sys_clearhist(void ); giuliomoro@230: EXTERN void sys_initmidiqueue(void ); giuliomoro@230: EXTERN int sys_addhist(int phase); giuliomoro@230: EXTERN void sys_setmiditimediff(double inbuftime, double outbuftime); giuliomoro@230: EXTERN void sched_tick( void); giuliomoro@230: EXTERN void sys_pollmidiqueue(void ); giuliomoro@230: EXTERN int sys_pollgui(void ); giuliomoro@230: EXTERN void sys_setchsr(int chin, int chout, int sr); giuliomoro@230: giuliomoro@230: EXTERN void inmidi_realtimein(int portno, int cmd); giuliomoro@230: EXTERN void inmidi_byte(int portno, int byte); giuliomoro@230: EXTERN void inmidi_sysex(int portno, int byte); giuliomoro@230: EXTERN void inmidi_noteon(int portno, int channel, int pitch, int velo); giuliomoro@230: EXTERN void inmidi_controlchange(int portno, giuliomoro@230: int channel, giuliomoro@230: int ctlnumber, giuliomoro@230: int value); giuliomoro@230: EXTERN void inmidi_programchange(int portno, int channel, int value); giuliomoro@230: EXTERN void inmidi_pitchbend(int portno, int channel, int value); giuliomoro@230: EXTERN void inmidi_aftertouch(int portno, int channel, int value); giuliomoro@230: EXTERN void inmidi_polyaftertouch(int portno, giuliomoro@230: int channel, giuliomoro@230: int pitch, giuliomoro@230: int value); giuliomoro@230: /* } jsarlo */ giuliomoro@230: extern t_widgetbehavior text_widgetbehavior;