shithub: aubio

ref: e997b1af642cbc14d067302f897f90d740571bf2
dir: /examples/midialsa.c/

View raw version
/* __copyright__ */

#include "aubio.h"
#include <unistd.h>

/* not supported yet */
#ifdef LADCCA_SUPPORT
#include <ladcca/ladcca.h>
cca_client_t * aubio_cca_client;
#endif /* LADCCA_SUPPORT */

int main(int argc, char **argv) {
#if ALSA_SUPPORT
  aubio_midi_player_t * mplay = new_aubio_midi_player();
  aubio_midi_driver_t * mdriver = new_aubio_midi_driver("alsa_seq",
    (handle_midi_event_func_t)aubio_midi_send_event, mplay);
  pause();
  del_aubio_midi_driver(mdriver);
#endif
  return 0;
}