Skip to content

Commit

Permalink
griffin: include all audio filters
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven committed Nov 9, 2024
1 parent 0e8d8c4 commit a1a58b4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
5 changes: 4 additions & 1 deletion griffin/griffin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,13 +1006,16 @@ FILTERS
#endif

#ifdef HAVE_DSP_FILTER
#include "../libretro-common/audio/dsp_filters/chorus.c"
#include "../libretro-common/audio/dsp_filters/crystalizer.c"
#include "../libretro-common/audio/dsp_filters/echo.c"
#include "../libretro-common/audio/dsp_filters/eq.c"
#include "../libretro-common/audio/dsp_filters/chorus.c"
#include "../libretro-common/audio/dsp_filters/iir.c"
#include "../libretro-common/audio/dsp_filters/panning.c"
#include "../libretro-common/audio/dsp_filters/phaser.c"
#include "../libretro-common/audio/dsp_filters/reverb.c"
#include "../libretro-common/audio/dsp_filters/tremolo.c"
#include "../libretro-common/audio/dsp_filters/vibrato.c"
#include "../libretro-common/audio/dsp_filters/wahwah.c"
#endif
#endif
Expand Down
24 changes: 16 additions & 8 deletions libretro-common/audio/dsp_filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,22 +134,30 @@ static bool create_filter_graph(retro_dsp_filter_t *dsp, float sample_rate)
}

#if defined(HAVE_FILTERS_BUILTIN)
extern const struct dspfilter_implementation *panning_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *iir_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *chorus_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *delta_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *echo_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *eq_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *iir_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *panning_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *phaser_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *reverb_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *tremolo_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *vibrato_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *wahwah_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *eq_dspfilter_get_implementation(dspfilter_simd_mask_t mask);
extern const struct dspfilter_implementation *chorus_dspfilter_get_implementation(dspfilter_simd_mask_t mask);

static const dspfilter_get_implementation_t dsp_plugs_builtin[] = {
panning_dspfilter_get_implementation,
iir_dspfilter_get_implementation,
chorus_dspfilter_get_implementation,
delta_dspfilter_get_implementation,
echo_dspfilter_get_implementation,
eq_dspfilter_get_implementation,
iir_dspfilter_get_implementation,
panning_dspfilter_get_implementation,
phaser_dspfilter_get_implementation,
reverb_dspfilter_get_implementation,
tremolo_dspfilter_get_implementation,
vibrato_dspfilter_get_implementation,
wahwah_dspfilter_get_implementation,
eq_dspfilter_get_implementation,
chorus_dspfilter_get_implementation,
};

static bool append_plugs(retro_dsp_filter_t *dsp, struct string_list *list)
Expand Down

0 comments on commit a1a58b4

Please sign in to comment.