shithub: aubio

Download patch

ref: 0a22ba9cf6d4ed193b06f8606d7f1bfdb0ddcc9c
parent: 700b89d6e8fcfd9c79cea51b153f46547110fb2d
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Aug 18 22:27:30 EDT 2023

sprinkle incomplete pragma

--- a/src/effects/pitchshift.h
+++ b/src/effects/pitchshift.h
@@ -37,6 +37,7 @@
 
 /** pitch shifting object */
 typedef struct _aubio_pitchshift_t aubio_pitchshift_t;
+#pragma incomplete aubio_pitchshift_t
 
 /** execute pitch shifting on an input signal frame
 
--- a/src/effects/timestretch.h
+++ b/src/effects/timestretch.h
@@ -44,6 +44,7 @@
 
 /** time stretching object */
 typedef struct _aubio_timestretch_t aubio_timestretch_t;
+#pragma incomplete aubio_timestretch_t
 
 /** execute time stretching on an input signal frame
 
--- a/src/io/audio_unit.h
+++ b/src/io/audio_unit.h
@@ -30,6 +30,7 @@
 #endif
 
 typedef struct _aubio_audio_unit_t aubio_audio_unit_t;
+#pragma incomplete aubio_audio_unit_t
 
 aubio_audio_unit_t * new_aubio_audio_unit(uint_t samplerate, uint_t inchannels,
     uint_t outchannels, uint_t blocksize);
--- a/src/io/sink.h
+++ b/src/io/sink.h
@@ -59,6 +59,7 @@
 
 /** media sink object */
 typedef struct _aubio_sink_t aubio_sink_t;
+#pragma incomplete aubio_sink_t
 
 /**
 
--- a/src/io/sink_wavwrite.h
+++ b/src/io/sink_wavwrite.h
@@ -40,6 +40,7 @@
 
 /** sink_wavwrite object */
 typedef struct _aubio_sink_wavwrite_t aubio_sink_wavwrite_t;
+#pragma incomplete aubio_sink_wavwrite_t
 
 /**
 
--- a/src/io/source.h
+++ b/src/io/source.h
@@ -68,6 +68,7 @@
 
 /** media source object */
 typedef struct _aubio_source_t aubio_source_t;
+#pragma incomplete aubio_source_t
 
 /**
 
--- a/src/io/source_wavread.h
+++ b/src/io/source_wavread.h
@@ -45,6 +45,7 @@
 
 /** wavread media source object */
 typedef struct _aubio_source_wavread_t aubio_source_wavread_t;
+#pragma incomplete aubio_source_wavread_t
 
 /**
 
--- a/src/notes/notes.h
+++ b/src/notes/notes.h
@@ -33,6 +33,7 @@
 
 /** notes detection object */
 typedef struct _aubio_notes_t aubio_notes_t;
+#pragma incomplete aubio_notes_t
 
 /** create notes detection object
 
--- a/src/onset/onset.h
+++ b/src/onset/onset.h
@@ -48,6 +48,7 @@
 
 /** onset detection object */
 typedef struct _aubio_onset_t aubio_onset_t;
+#pragma incomplete aubio_onset_t
 
 /** create onset detection object
 
--- a/src/onset/peakpicker.h
+++ b/src/onset/peakpicker.h
@@ -35,6 +35,7 @@
 
 /** peak-picker structure */
 typedef struct _aubio_peakpicker_t aubio_peakpicker_t;
+#pragma incomplete aubio_peakpicker_t
 
 /** peak-picker creation function */
 aubio_peakpicker_t * new_aubio_peakpicker(void);
--- a/src/pitch/pitch.h
+++ b/src/pitch/pitch.h
@@ -104,6 +104,7 @@
 
 /** pitch detection object */
 typedef struct _aubio_pitch_t aubio_pitch_t;
+#pragma incomplete aubio_pitch_t
 
 /** execute pitch detection on an input signal frame
 
--- a/src/pitch/pitchfcomb.h
+++ b/src/pitch/pitchfcomb.h
@@ -43,6 +43,7 @@
 
 /** pitch detection object */
 typedef struct _aubio_pitchfcomb_t aubio_pitchfcomb_t;
+#pragma incomplete aubio_pitchfcomb_t
 
 /** execute pitch detection on an input buffer
 
--- a/src/pitch/pitchmcomb.h
+++ b/src/pitch/pitchmcomb.h
@@ -44,6 +44,7 @@
 
 /** pitch detection object */
 typedef struct _aubio_pitchmcomb_t aubio_pitchmcomb_t;
+#pragma incomplete aubio_pitchmcomb_t
 
 /** execute pitch detection on an input spectral frame
 
--- a/src/pitch/pitchschmitt.h
+++ b/src/pitch/pitchschmitt.h
@@ -43,6 +43,7 @@
 
 /** pitch detection object */
 typedef struct _aubio_pitchschmitt_t aubio_pitchschmitt_t;
+#pragma incomplete aubio_pitchschmitt_t
 
 /** execute pitch detection on an input buffer
 
--- a/src/pitch/pitchspecacf.h
+++ b/src/pitch/pitchspecacf.h
@@ -47,6 +47,7 @@
 
 /** pitch detection object */
 typedef struct _aubio_pitchspecacf_t aubio_pitchspecacf_t;
+#pragma incomplete aubio_pitchspecacf_t
 
 /** execute pitch detection on an input buffer
 
--- a/src/pitch/pitchyin.h
+++ b/src/pitch/pitchyin.h
@@ -44,6 +44,7 @@
 
 /** pitch detection object */
 typedef struct _aubio_pitchyin_t aubio_pitchyin_t;
+#pragma incomplete aubio_pitchyin_t
 
 /** creation of the pitch detection object
 
--- a/src/pitch/pitchyinfast.h
+++ b/src/pitch/pitchyinfast.h
@@ -45,6 +45,7 @@
 
 /** pitch detection object */
 typedef struct _aubio_pitchyinfast_t aubio_pitchyinfast_t;
+#pragma incomplete aubio_pitchyinfast_t
 
 /** creation of the pitch detection object
 
--- a/src/pitch/pitchyinfft.h
+++ b/src/pitch/pitchyinfft.h
@@ -44,6 +44,7 @@
 
 /** pitch detection object */
 typedef struct _aubio_pitchyinfft_t aubio_pitchyinfft_t;
+#pragma incomplete aubio_pitchyinfft_t
 
 /** execute pitch detection on an input buffer
 
--- a/src/spectral/awhitening.h
+++ b/src/spectral/awhitening.h
@@ -49,6 +49,7 @@
 
 /** spectral whitening structure */
 typedef struct _aubio_spectral_whitening_t aubio_spectral_whitening_t;
+#pragma incomplete aubio_spectral_whitening_t
 
 /** execute spectral adaptive whitening, in-place
 
--- a/src/spectral/dct.c
+++ b/src/spectral/dct.c
@@ -59,6 +59,7 @@
 extern void del_aubio_dct_ipp (aubio_dct_ipp_t *s);
 #else
 typedef struct _aubio_dct_ooura_t aubio_dct_ooura_t;
+#pragma incomplete aubio_dct_ooura_t
 extern aubio_dct_ooura_t * new_aubio_dct_ooura (uint_t size);
 extern void aubio_dct_ooura_do(aubio_dct_ooura_t *s, const fvec_t *input, fvec_t *output);
 extern void aubio_dct_ooura_rdo(aubio_dct_ooura_t *s, const fvec_t *input, fvec_t *output);
@@ -67,6 +68,7 @@
 
 // plain mode
 typedef struct _aubio_dct_plain_t aubio_dct_plain_t;
+#pragma incomplete aubio_dct_plain_t
 extern aubio_dct_plain_t * new_aubio_dct_plain (uint_t size);
 extern void aubio_dct_plain_do(aubio_dct_plain_t *s, const fvec_t *input, fvec_t *output);
 extern void aubio_dct_plain_rdo(aubio_dct_plain_t *s, const fvec_t *input, fvec_t *output);
--- a/src/spectral/dct.h
+++ b/src/spectral/dct.h
@@ -44,6 +44,7 @@
 
 */
 typedef struct _aubio_dct_t aubio_dct_t;
+#pragma incomplete aubio_dct_t
 
 /** create new DCT computation object
 
--- a/src/spectral/dct_ooura.c
+++ b/src/spectral/dct_ooura.c
@@ -25,6 +25,7 @@
 #if !defined(HAVE_ACCELERATE) && !defined(HAVE_FFTW3) && !defined(HAVE_INTEL_IPP)
 
 typedef struct _aubio_dct_ooura_t aubio_dct_ooura_t;
+#pragma incomplete aubio_dct_ooura_t
 
 extern void aubio_ooura_ddct(int, int, smpl_t *, int *, smpl_t *);
 
--- a/src/spectral/dct_plain.c
+++ b/src/spectral/dct_plain.c
@@ -24,6 +24,7 @@
 #include "spectral/dct.h"
 
 typedef struct _aubio_dct_plain_t aubio_dct_plain_t;
+#pragma incomplete aubio_dct_plain_t
 
 struct _aubio_dct_plain_t {
   uint_t size;
--- a/src/spectral/fft.h
+++ b/src/spectral/fft.h
@@ -44,6 +44,7 @@
 
 */
 typedef struct _aubio_fft_t aubio_fft_t;
+#pragma incomplete aubio_fft_t
 
 /** create new FFT computation object
 
--- a/src/spectral/filterbank.h
+++ b/src/spectral/filterbank.h
@@ -43,6 +43,7 @@
 
  */
 typedef struct _aubio_filterbank_t aubio_filterbank_t;
+#pragma incomplete aubio_filterbank_t
 
 /** create filterbank object
 
--- a/src/spectral/mfcc.h
+++ b/src/spectral/mfcc.h
@@ -45,6 +45,7 @@
 
 /** mfcc object */
 typedef struct _aubio_mfcc_t aubio_mfcc_t;
+#pragma incomplete aubio_mfcc_t
 
 /** create mfcc object
 
--- a/src/spectral/phasevoc.h
+++ b/src/spectral/phasevoc.h
@@ -40,6 +40,7 @@
 
 /** phasevocoder object */
 typedef struct _aubio_pvoc_t aubio_pvoc_t;
+#pragma incomplete aubio_pvoc_t
 
 /** create phase vocoder object
 
--- a/src/spectral/specdesc.h
+++ b/src/spectral/specdesc.h
@@ -161,6 +161,7 @@
 
 /** spectral description structure */
 typedef struct _aubio_specdesc_t aubio_specdesc_t;
+#pragma incomplete aubio_specdesc_t
 
 /** execute spectral description function on a spectral frame
 
--- a/src/spectral/tss.h
+++ b/src/spectral/tss.h
@@ -45,6 +45,7 @@
 
 /** Transient / Steady-state Separation object */
 typedef struct _aubio_tss_t aubio_tss_t;
+#pragma incomplete aubio_tss_t
 
 /** create tss object
 
--- a/src/synth/sampler.h
+++ b/src/synth/sampler.h
@@ -40,6 +40,7 @@
 
 /** sampler object */
 typedef struct _aubio_sampler_t aubio_sampler_t;
+#pragma incomplete aubio_sampler_t
 
 /** create new sampler object
 
--- a/src/synth/wavetable.h
+++ b/src/synth/wavetable.h
@@ -40,6 +40,7 @@
 
 /** wavetable object */
 typedef struct _aubio_wavetable_t aubio_wavetable_t;
+#pragma incomplete aubio_wavetable_t
 
 /** create new wavetable object
 
--- a/src/tempo/beattracking.h
+++ b/src/tempo/beattracking.h
@@ -45,6 +45,7 @@
 
 /** beat tracking object */
 typedef struct _aubio_beattracking_t aubio_beattracking_t;
+#pragma incomplete aubio_beattracking_t
 
 /** create beat tracking object
 
--- a/src/tempo/tempo.h
+++ b/src/tempo/tempo.h
@@ -39,6 +39,7 @@
 
 /** tempo detection structure */
 typedef struct _aubio_tempo_t aubio_tempo_t;
+#pragma incomplete aubio_tempo_t
 
 /** create tempo detection object
 
--- a/src/temporal/filter.h
+++ b/src/temporal/filter.h
@@ -70,6 +70,7 @@
 
 */
 typedef struct _aubio_filter_t aubio_filter_t;
+#pragma incomplete aubio_filter_t
 
 /** filter input vector (in-place)
 
--- a/src/temporal/resampler.h
+++ b/src/temporal/resampler.h
@@ -36,6 +36,7 @@
 
 /** resampler object */
 typedef struct _aubio_resampler_t aubio_resampler_t;
+#pragma incomplete aubio_resampler_t
 
 /** create resampler object
 
--- a/src/utils/hist.h
+++ b/src/utils/hist.h
@@ -34,6 +34,7 @@
 
 /** histogram object */
 typedef struct _aubio_hist_t aubio_hist_t;
+#pragma incomplete aubio_hist_t
 
 /** histogram creation
 
--- a/src/utils/parameter.h
+++ b/src/utils/parameter.h
@@ -38,6 +38,7 @@
 
 /** parameter object */
 typedef struct _aubio_parameter_t aubio_parameter_t;
+#pragma incomplete aubio_parameter_t
 
 /** create new parameter object
 
--- a/src/utils/scale.h
+++ b/src/utils/scale.h
@@ -37,6 +37,7 @@
 
 /** scale object */
 typedef struct _aubio_scale_t aubio_scale_t;
+#pragma incomplete aubio_scale_t
 
 /** create a scale object