Jack2 1.9.6
|
00001 /* 00002 Copyright (C) 2007 Dmitry Baikov 00003 00004 This program is free software; you can redistribute it and/or modify 00005 it under the terms of the GNU Lesser General Public License as published by 00006 the Free Software Foundation; either version 2.1 of the License, or 00007 (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU Lesser General Public License for more details. 00013 00014 You should have received a copy of the GNU Lesser General Public License 00015 along with this program; if not, write to the Free Software 00016 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 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 extern jack_port_type_id_t PORT_TYPES_MAX; 00031 00032 struct JackPortType 00033 { 00034 const char* name; 00035 void (*init)(void* buffer, size_t buffer_size, jack_nframes_t nframes); 00036 void (*mixdown)(void *mixbuffer, void** src_buffers, int src_count, jack_nframes_t nframes); 00037 }; 00038 00039 extern jack_port_type_id_t GetPortTypeId(const char* port_type); 00040 extern const struct JackPortType* GetPortType(jack_port_type_id_t port_type_id); 00041 00042 extern const struct JackPortType gAudioPortType; 00043 extern const struct JackPortType gMidiPortType; 00044 00045 } // namespace Jack 00046 00047 #endif