alsa_midi_impl.h

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 
00023 #ifdef JACKMP
00024 
00025 #include "types.h"
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 int JACK_is_realtime(jack_client_t *client);
00032 int JACK_client_create_thread(jack_client_t *client, pthread_t *thread, int priority, int realtime, void *(*start_routine)(void*), void *arg);
00033 
00034 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);
00035 int JACK_port_unregister(jack_client_t *, jack_port_t*);
00036 void* JACK_port_get_buffer(jack_port_t*, jack_nframes_t);
00037 int JACK_port_set_alias(jack_port_t* port, const char* name);
00038 
00039 jack_nframes_t JACK_get_sample_rate(jack_client_t *);
00040 jack_nframes_t JACK_frame_time(jack_client_t *);
00041 jack_nframes_t JACK_last_frame_time(jack_client_t *);
00042 
00043 #define jack_is_realtime JACK_is_realtime
00044 #define jack_client_create_thread JACK_client_create_thread
00045 
00046 #define jack_port_register JACK_port_register
00047 #define jack_port_unregister JACK_port_unregister
00048 #define jack_port_get_buffer JACK_port_get_buffer
00049 #define jack_port_set_alias JACK_port_set_alias
00050 
00051 #define jack_get_sample_rate JACK_get_sample_rate
00052 #define jack_frame_time JACK_frame_time
00053 #define jack_last_frame_time JACK_last_frame_time
00054 
00055 #ifdef __cplusplus
00056 } // extern "C"
00057 #endif
00058 
00059 #else // usual jack
00060 
00061 #include <jack/jack.h>
00062 #include <jack/thread.h>
00063 
00064 #endif
00065 
00066 
00067 #if defined(STANDALONE)
00068 #define MESSAGE(...) fprintf(stderr, __VA_ARGS__)
00069 #elif defined(JACKMP)
00070 #define MESSAGE(...) fprintf(stderr, __VA_ARGS__)
00071 #else
00072 #include <jack/messagebuffer.h>
00073 #endif
00074 
00075 #define info_log(...)  MESSAGE(__VA_ARGS__)
00076 #define error_log(...) MESSAGE(__VA_ARGS__)
00077 
00078 #ifdef DEBUG
00079 #define debug_log(...) MESSAGE(__VA_ARGS__)
00080 #else
00081 #define debug_log(...)
00082 #endif
00083 
00084 
00085 #include "alsa_midi.h"
00086 
00087 
00088 #endif /* __jack_alsa_midi_impl_h__ */

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