1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Move resampler drivers to audio/resamplers

This commit is contained in:
twinaphex 2014-09-09 21:54:41 +02:00
parent 07ee234d5d
commit 598421e7d7
15 changed files with 30 additions and 32 deletions

View File

@ -40,10 +40,10 @@ OBJ = frontend/frontend.o \
gfx/scaler/scaler_filter.o \
gfx/image/image_rpng.o \
gfx/fonts/fonts.o \
audio/resampler.o \
audio/resamplers/resampler.o \
audio/dsp_filter.o \
audio/sinc.o \
audio/cc_resampler.o \
audio/resamplers/sinc.o \
audio/resamplers/cc_resampler.o \
location/nulllocation.o \
camera/nullcamera.o \
gfx/nullgfx.o \
@ -452,7 +452,7 @@ ifeq ($(HAVE_XKBCOMMON), 1)
endif
ifeq ($(HAVE_NEON),1)
OBJ += audio/sinc_neon.o
OBJ += audio/resamplers/sinc_neon.o
# When compiled without this, tries to attempt to compile sinc lerp,
# which will error out
DEFINES += -DSINC_LOWER_QUALITY

View File

@ -45,9 +45,9 @@ OBJ = frontend/platform/platform_emscripten.o \
gfx/fonts/bitmapfont.o \
gfx/image/image_rpng.o \
gfx/filter.o \
audio/resampler.o \
audio/sinc.o \
audio/cc_resampler.o \
audio/resamplers/resampler.o \
audio/resamplers/sinc.o \
audio/resamplers/cc_resampler.o \
audio/nullaudio.o \
performance.o \
core_info.o \

View File

@ -10,7 +10,7 @@ TARGET := retroarch-pandora
LDDIRS = -L. -L$(PNDSDK)/usr/lib
INCDIRS = -I. -I$(PNDSDK)/usr/include
OBJ = griffin/griffin.o audio/sinc_neon.o audio/utils_neon.o
OBJ = griffin/griffin.o audio/resamplers/sinc_neon.o audio/utils_neon.o
LDFLAGS = -L$(PNDSDK)/usr/lib -Wl,-rpath,$(PNDSDK)/usr/lib
LIBS = -lGLESv2 -lEGL -ldl -lm -lpthread -lrt -lasound

View File

@ -45,10 +45,10 @@ OBJ = frontend/frontend.o \
gfx/fonts/fonts.o \
gfx/fonts/bitmapfont.o \
gfx/image/image_rpng.o \
audio/resampler.o \
audio/resamplers/resampler.o \
audio/dsp_filter.o \
audio/sinc.o \
audio/cc_resampler.o \
audio/resamplers/sinc.o \
audio/resamplers/cc_resampler.o \
location/nulllocation.o \
camera/nullcamera.o \
gfx/nullgfx.o \

View File

@ -23,7 +23,7 @@
#include <stdio.h>
#if !defined(RESAMPLER_TEST) && defined(RARCH_INTERNAL)
#include "../general.h"
#include "../../general.h"
#else
#define RARCH_LOG(...) fprintf(stderr, __VA_ARGS__)
#endif

View File

@ -17,10 +17,10 @@
#include <string.h>
#ifdef HAVE_CONFIG_H
#include "../config.h"
#include "../../config.h"
#endif
#include "../general.h"
#include "../../general.h"
static const rarch_resampler_t *resampler_drivers[] = {
&sinc_resampler,

View File

@ -18,13 +18,13 @@
#define __RARCH_RESAMPLER_H
#ifdef HAVE_CONFIG_H
#include "../config.h"
#include "../../config.h"
#endif
#include <stddef.h>
#include <stdint.h>
#include <math.h>
#include "../boolean.h"
#include "../../boolean.h"
#ifndef M_PI
/* M_PI is left out of ISO C99 :( */

View File

@ -16,17 +16,17 @@
// Bog-standard windowed SINC implementation.
#include "resampler.h"
#include "../libretro.h"
#include "../performance.h"
#include "../../libretro.h"
#include "../../performance.h"
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "../msvc/msvc_compat.h"
#include "../../msvc/msvc_compat.h"
#ifndef RESAMPLER_TEST
#include "../general.h"
#include "../../general.h"
#else
#define RARCH_LOG(...) fprintf(stderr, __VA_ARGS__)
#endif

View File

@ -24,7 +24,6 @@
#include <math.h>
#include "compat/posix_string.h"
#include "audio/utils.h"
#include "audio/resampler.h"
#include "gfx/thread_wrapper.h"
#include "audio/thread_wrapper.h"
#include "gfx/gfx_common.h"

View File

@ -82,7 +82,7 @@
#include "command.h"
#endif
#include "audio/resampler.h"
#include "audio/resamplers/resampler.h"
#ifdef __cplusplus
extern "C" {

View File

@ -355,10 +355,10 @@ FIFO BUFFER
/*============================================================
AUDIO RESAMPLER
============================================================ */
#include "../audio/resampler.c"
#include "../audio/sinc.c"
#include "../audio/resamplers/resampler.c"
#include "../audio/resamplers/sinc.c"
#ifdef HAVE_CC_RESAMPLER
#include "../audio/cc_resampler.c"
#include "../audio/resamplers/cc_resampler.c"
#endif
/*============================================================

View File

@ -185,12 +185,12 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\audio\cc_resampler.c" />
<ClCompile Include="..\..\audio\resamplers\cc_resampler.c" />
<ClCompile Include="..\..\audio\dsound.c">
</ClCompile>
<ClCompile Include="..\..\audio\dsp_filter.c" />
<ClCompile Include="..\..\audio\resampler.c" />
<ClCompile Include="..\..\audio\sinc.c" />
<ClCompile Include="..\..\audio\resamplers\resampler.c" />
<ClCompile Include="..\..\audio\resamplers\sinc.c" />
<ClCompile Include="..\..\audio\thread_wrapper.c" />
<ClCompile Include="..\..\audio\utils.c">
</ClCompile>

View File

@ -48,13 +48,13 @@
<ClCompile Include="..\..\gfx\glsym\glsym_gl.c">
<Filter>gfx\glsym</Filter>
</ClCompile>
<ClCompile Include="..\..\audio\sinc.c">
<ClCompile Include="..\..\audio\resamplers\sinc.c">
<Filter>audio</Filter>
</ClCompile>
<ClCompile Include="..\..\audio\utils.c">
<Filter>audio</Filter>
</ClCompile>
<ClCompile Include="..\..\audio\resampler.c">
<ClCompile Include="..\..\audio\resamplers\resampler.c">
<Filter>audio</Filter>
</ClCompile>
<ClCompile Include="..\..\gfx\math\matrix.c">
@ -231,7 +231,7 @@
<ClCompile Include="..\..\gfx\filter.c">
<Filter>gfx</Filter>
</ClCompile>
<ClCompile Include="..\..\audio\cc_resampler.c">
<ClCompile Include="..\..\audio\resamplers\cc_resampler.c">
<Filter>audio</Filter>
</ClCompile>
<ClCompile Include="..\..\frontend\menu\backend\menu_common_backend.c">

View File

@ -49,7 +49,6 @@ extern "C" {
#include "../gfx/scaler/scaler.h"
#include "../conf/config_file.h"
#include "../audio/utils.h"
#include "../audio/resampler.h"
#include "ffemu.h"
#include <assert.h>