00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __JackPortType__
00021 #define __JackPortType__
00022
00023 #include "types.h"
00024 #include "JackConstants.h"
00025 #include <stddef.h>
00026
00027 namespace Jack
00028 {
00029
00030 struct JackPortType {
00031 const char* name;
00032 void (*init)(void* buffer, size_t buffer_size, jack_nframes_t nframes);
00033 void (*mixdown)(void *mixbuffer, void** src_buffers, int src_count, jack_nframes_t nframes);
00034 };
00035
00036 extern int GetPortTypeId(const char* port_type);
00037 extern const JackPortType* GetPortType(int port_type_id);
00038
00039 extern const JackPortType gAudioPortType;
00040 extern const JackPortType gMidiPortType;
00041
00042 }
00043
00044 #endif