mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
(MSVC) Build fixes
This commit is contained in:
parent
dd95708399
commit
8321506b39
@ -16,7 +16,6 @@
|
||||
*/
|
||||
|
||||
#include <math.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -31,6 +31,12 @@
|
||||
#define M_PI 3.1415926535897932384626433832795
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define ALIGNED __attribute__((aligned(16)));
|
||||
#else
|
||||
#define ALIGNED
|
||||
#endif
|
||||
|
||||
#define sqr(a) ((a) * (a))
|
||||
|
||||
#ifdef RARCH_INTERNAL
|
||||
@ -54,9 +60,9 @@ struct iir_filter
|
||||
|
||||
struct iir_filter_data
|
||||
{
|
||||
struct iir_filter iir_l __attribute__((aligned(16)));
|
||||
struct iir_filter iir_r __attribute__((aligned(16)));
|
||||
float buf[4096] __attribute__((aligned(16)));
|
||||
struct iir_filter iir_l ALIGNED;
|
||||
struct iir_filter iir_r ALIGNED;
|
||||
float buf[4096] ALIGNED;
|
||||
int rate;
|
||||
unsigned type;
|
||||
};
|
||||
|
4
driver.c
4
driver.c
@ -969,7 +969,9 @@ void uninit_drivers(void)
|
||||
|
||||
#ifdef HAVE_FILTERS_BUILTIN
|
||||
extern const struct dspfilter_implementation *echo_dsp_plugin_init(dspfilter_simd_mask_t simd);
|
||||
#ifndef _WIN32
|
||||
extern const struct dspfilter_implementation *eq_dsp_plugin_init(dspfilter_simd_mask_t simd);
|
||||
#endif
|
||||
extern const struct dspfilter_implementation *iir_dsp_plugin_init(dspfilter_simd_mask_t simd);
|
||||
extern const struct dspfilter_implementation *phaser_dsp_plugin_init(dspfilter_simd_mask_t simd);
|
||||
extern const struct dspfilter_implementation *reverb_dsp_plugin_init(dspfilter_simd_mask_t simd);
|
||||
@ -980,7 +982,9 @@ static const struct dspfilter_implementation *(*dspfilter_drivers[]) (dspfilter_
|
||||
{
|
||||
NULL,
|
||||
&echo_dsp_plugin_init,
|
||||
#ifndef _WIN32
|
||||
&eq_dsp_plugin_init,
|
||||
#endif
|
||||
&iir_dsp_plugin_init,
|
||||
&phaser_dsp_plugin_init,
|
||||
&reverb_dsp_plugin_init,
|
||||
|
@ -486,7 +486,9 @@ FILTERS
|
||||
#include "../gfx/filters/scale2x.c"
|
||||
|
||||
#include "../audio/filters/echo.c"
|
||||
#ifndef _WIN32
|
||||
#include "../audio/filters/eq.c"
|
||||
#endif
|
||||
#include "../audio/filters/iir.c"
|
||||
#include "../audio/filters/phaser.c"
|
||||
#include "../audio/filters/reverb.c"
|
||||
|
Loading…
Reference in New Issue
Block a user