Browse Source

MIDI API in wrapper lib (in progress).

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2025 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
sletz 17 years ago
parent
commit
af75349545
2 changed files with 11 additions and 0 deletions
  1. +1
    -0
      ChangeLog
  2. +10
    -0
      common/JackAPIWrapper.cpp

+ 1
- 0
ChangeLog View File

@@ -24,6 +24,7 @@ Fernando Lopez-Lezcano
* New jack_server_control client to test notifications when linked to the server library. * New jack_server_control client to test notifications when linked to the server library.
* Correct JackClient::Activate so that first kGraphOrderCallback can be received by the client notification thread. * Correct JackClient::Activate so that first kGraphOrderCallback can be received by the client notification thread.
* MIDI API in wrapper lib (in progress).


2008-03-16 Stephane Letz <letz@grame.fr> 2008-03-16 Stephane Letz <letz@grame.fr>


+ 10
- 0
common/JackAPIWrapper.cpp View File

@@ -22,6 +22,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#endif #endif


#include "types.h" #include "types.h"
#include "midiport.h"
#include "jack.h" #include "jack.h"
#include "JackExports.h" #include "JackExports.h"
#include "varargs.h" #include "varargs.h"
@@ -206,6 +207,15 @@ extern "C"
jack_status_t *status, ...); jack_status_t *status, ...);
EXPORT jack_client_t * jack_client_new (const char *client_name); EXPORT jack_client_t * jack_client_new (const char *client_name);
EXPORT int jack_client_close (jack_client_t *client); EXPORT int jack_client_close (jack_client_t *client);
// MIDI
EXPORT jack_nframes_t jack_midi_get_event_count(void* port_buffer);
EXPORT int jack_midi_event_get(jack_midi_event_t *event, void* port_buffer, jack_nframes_t event_index);
EXPORT void jack_midi_clear_buffer(void* port_buffer);
EXPORT size_t jack_midi_max_event_size(void* port_buffer);
EXPORT jack_midi_data_t* jack_midi_event_reserve(void* port_buffer, jack_nframes_t time, size_t data_size);
EXPORT int jack_midi_event_write(void* port_buffer, jack_nframes_t time, const jack_midi_data_t *data, size_t data_size);
EXPORT jack_nframes_t jack_midi_get_lost_event_count(void *port_buffer);


#ifdef __cplusplus #ifdef __cplusplus
} }


Loading…
Cancel
Save