JackPortType.h

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 General Public License as published by
00006   the Free Software Foundation; either version 2 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 General Public License for more details.
00013 
00014   You should have received a copy of the GNU General Public License
00015   along with this program; if not, write to the Free Software
00016   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 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 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 } // namespace Jack
00043 
00044 #endif

Generated on Thu Feb 14 11:16:02 2008 for Jackdmp by  doxygen 1.5.1