mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 12:41:00 +00:00
Move resampler drivers to audio/resamplers
This commit is contained in:
parent
07ee234d5d
commit
598421e7d7
8
Makefile
8
Makefile
@ -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
|
||||
|
@ -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 \
|
||||
|
@ -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
|
||||
|
@ -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 \
|
||||
|
@ -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
|
@ -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,
|
@ -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 :( */
|
@ -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
|
1
driver.c
1
driver.c
@ -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"
|
||||
|
@ -82,7 +82,7 @@
|
||||
#include "command.h"
|
||||
#endif
|
||||
|
||||
#include "audio/resampler.h"
|
||||
#include "audio/resamplers/resampler.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
@ -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
|
||||
|
||||
/*============================================================
|
||||
|
@ -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>
|
||||
|
@ -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">
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user