From: Paul Brossier Date: Wed, 1 Dec 2004 00:18:46 +0000 (+0000) Subject: started enabling ladcca support X-Git-Tag: 0.4.0-beta1~1480 X-Git-Url: https://git.aubio.org/?p=aubio.git;a=commitdiff_plain;h=b49daf6cd100c92c728b3286d6579e5a479f9945 started enabling ladcca support ladcca still need works, not sure how to avoid the extern client --- diff --git a/TODO b/TODO index 71ac5cb0..bbe249f9 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,10 @@ TODO +- test zero crossing in python/aubiocut +- complete manpages - drop the multichannel bits ? - drop the midi/jack bits ? -- looks like it really needs ring buffers -- move mathutils and sample to use gsl or some faster library +- move mathutils and sample to use gsl or some faster library ? - code cleanup and optimisation +- really enable ladcca support - mix with libsoundtouch and make a melodyne gui diff --git a/examples/Makefile.am b/examples/Makefile.am index e4ff18ad..e0f4fdbc 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -2,8 +2,8 @@ #SUBDIRS=onsets # global flags -AM_CFLAGS = -I../src -AM_LDFLAGS = -L../src -laubio +AM_CFLAGS = -I../src @LADCCA_CFLAGS@ +AM_LDFLAGS = -L../src @LADCCA_LIBS@ -laubio #AM_SOURCES = utils.c # add your programs to this list diff --git a/examples/Makefile.in b/examples/Makefile.in index a7b7f520..d22a97f2 100644 --- a/examples/Makefile.in +++ b/examples/Makefile.in @@ -155,8 +155,8 @@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ # global flags -AM_CFLAGS = -I../src -AM_LDFLAGS = -L../src -laubio +AM_CFLAGS = -I../src @LADCCA_CFLAGS@ +AM_LDFLAGS = -L../src @LADCCA_LIBS@ -laubio #AM_SOURCES = utils.c # add your programs to this list diff --git a/examples/midialsa.c b/examples/midialsa.c index cad854ec..d4974d70 100644 --- a/examples/midialsa.c +++ b/examples/midialsa.c @@ -3,6 +3,12 @@ #include "aubio.h" #include +/* not supported yet */ +#ifdef LADCCA_SUPPORT +#include +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(); diff --git a/examples/midiparse.c b/examples/midiparse.c index b09ec829..abe93f0b 100644 --- a/examples/midiparse.c +++ b/examples/midiparse.c @@ -20,6 +20,12 @@ #include "aubio.h" #include +/* not supported yet */ +#ifdef LADCCA_SUPPORT +#include +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(); diff --git a/examples/midiplay.c b/examples/midiplay.c index f164b036..421964f6 100644 --- a/examples/midiplay.c +++ b/examples/midiplay.c @@ -25,6 +25,12 @@ #include "aubio.h" #include +/* not supported yet */ +#ifdef LADCCA_SUPPORT +#include +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(); diff --git a/examples/utils.c b/examples/utils.c index dd213123..81ded93a 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -12,6 +12,7 @@ #include /* for isfinite */ #include "utils.h" +/* not supported yet */ #ifdef LADCCA_SUPPORT #include cca_client_t * aubio_cca_client; diff --git a/src/aubio_priv.h b/src/aubio_priv.h index 64c496fc..98877d02 100644 --- a/src/aubio_priv.h +++ b/src/aubio_priv.h @@ -65,6 +65,13 @@ #include #endif +#ifdef ALSA_SUPPORT +#ifdef LADCCA_SUPPORT +#include +extern cca_client_t * aubio_cca_client; +#endif /* LADCCA_SUPPORT */ +#endif /* ALSA_SUPPORT */ + #include "types.h" diff --git a/src/midi_alsa_raw.c b/src/midi_alsa_raw.c index 2b99c5f2..1556d018 100644 --- a/src/midi_alsa_raw.c +++ b/src/midi_alsa_raw.c @@ -30,7 +30,6 @@ #include "midi_parser.h" #include "midi_driver.h" - #if ALSA_SUPPORT #define ALSA_PCM_NEW_HW_PARAMS_API @@ -43,12 +42,6 @@ #include "config.h" -#ifdef LADCCA_SUPPORT -#include -extern cca_client_t * aubio_cca_client; -#endif /* LADCCA_SUPPORT */ - - #define AUBIO_ALSA_DEFAULT_MIDI_DEVICE "default" /** \bug double define? */ diff --git a/src/midi_alsa_seq.c b/src/midi_alsa_seq.c index 8d41a79e..cf556eb7 100644 --- a/src/midi_alsa_seq.c +++ b/src/midi_alsa_seq.c @@ -41,12 +41,6 @@ #include /* #include //perror is in stdio.h */ - -#ifdef LADCCA_SUPPORT -#include -extern cca_client_t * aubio_cca_client; -#endif /* LADCCA_SUPPORT */ - #define AUBIO_ALSA_DEFAULT_SEQ_DEVICE "default" #define AUBIO_ALSA_BUFFER_LENGTH 512