Jack2 1.9.6
|
00001 /* 00002 * Copyright (c) 2007 Dmitry S. 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 */ 00018 00019 #ifndef __jack_alsa_midi_impl_h__ 00020 #define __jack_alsa_midi_impl_h__ 00021 00022 #include "JackConstants.h" 00023 00024 #ifdef JACKMP 00025 00026 #include "types.h" 00027 00028 #ifdef __cplusplus 00029 extern "C" 00030 { 00031 #endif 00032 00033 int JACK_is_realtime(jack_client_t *client); 00034 int JACK_client_create_thread(jack_client_t *client, pthread_t *thread, int priority, int realtime, void *(*start_routine)(void*), void *arg); 00035 00036 jack_port_t* JACK_port_register(jack_client_t *client, const char *port_name, const char *port_type, unsigned long flags, unsigned long buffer_size); 00037 int JACK_port_unregister(jack_client_t *, jack_port_t*); 00038 void* JACK_port_get_buffer(jack_port_t*, jack_nframes_t); 00039 int JACK_port_set_alias(jack_port_t* port, const char* name); 00040 00041 jack_nframes_t JACK_get_sample_rate(jack_client_t *); 00042 jack_nframes_t JACK_frame_time(jack_client_t *); 00043 jack_nframes_t JACK_last_frame_time(jack_client_t *); 00044 00045 #define jack_is_realtime JACK_is_realtime 00046 #define jack_client_create_thread JACK_client_create_thread 00047 00048 #define jack_port_register JACK_port_register 00049 #define jack_port_unregister JACK_port_unregister 00050 #define jack_port_get_buffer JACK_port_get_buffer 00051 #define jack_port_set_alias JACK_port_set_alias 00052 00053 #define jack_get_sample_rate JACK_get_sample_rate 00054 #define jack_frame_time JACK_frame_time 00055 #define jack_last_frame_time JACK_last_frame_time 00056 00057 #ifdef __cplusplus 00058 } // extern "C" 00059 #endif 00060 00061 #else // usual jack 00062 00063 #include "jack.h" 00064 #include "thread.h" 00065 00066 #endif 00067 00068 #if defined(STANDALONE) 00069 #define MESSAGE(...) fprintf(stderr, __VA_ARGS__) 00070 #elif !defined(JACKMP) 00071 #include <jack/messagebuffer.h> 00072 #endif 00073 00074 #define info_log(...) jack_info(__VA_ARGS__) 00075 #define error_log(...) jack_error(__VA_ARGS__) 00076 00077 #ifdef ALSA_MIDI_DEBUG 00078 #define debug_log(...) jack_info(__VA_ARGS__) 00079 #else 00080 #define debug_log(...) 00081 #endif 00082 00083 #include "alsa_midi.h" 00084 00085 #endif /* __jack_alsa_midi_impl_h__ */