mirror of
https://github.com/libretro/RetroArch
synced 2025-03-21 22:20:59 +00:00
Update filter a bit. Add a Makefile.
This commit is contained in:
parent
7f1cd62c8a
commit
24cb2e6844
16
audio/ext/Makefile
Normal file
16
audio/ext/Makefile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
TARGET = ssnes_iir_filter.so
|
||||||
|
OBJ = ssnes_iir_filter.o
|
||||||
|
|
||||||
|
all: $(TARGET)
|
||||||
|
|
||||||
|
$(TARGET): $(OBJ)
|
||||||
|
$(CC) -o $@ -shared $(OBJ)
|
||||||
|
|
||||||
|
%.o: %.c
|
||||||
|
$(CC) -c -o $@ $< -std=c99 -fPIC -O3 -march=native $(CFLAGS)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(TARGET)
|
||||||
|
rm -f $(OBJ)
|
||||||
|
|
||||||
|
.PHONY: clean
|
@ -3,12 +3,14 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
// Simple IIR filter implementation.
|
// Simple IIR filter implementation, optimized for SSE3.
|
||||||
|
|
||||||
//#define USE_SSE3
|
#ifdef __SSE3__ // Build with -march=native or -msse3 to let this be detected! D:
|
||||||
|
#define USE_SSE3
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_SSE3
|
#ifdef USE_SSE3
|
||||||
#include <immintrin.h>
|
#include <pmmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Make a test build with standalone main()
|
// Make a test build with standalone main()
|
||||||
@ -188,7 +190,8 @@ const ssnes_dsp_plugin_t dsp_plug = {
|
|||||||
.init = dsp_init,
|
.init = dsp_init,
|
||||||
.process = dsp_process,
|
.process = dsp_process,
|
||||||
.free = dsp_free,
|
.free = dsp_free,
|
||||||
.api_version = SSNES_API_VERSION
|
.api_version = SSNES_DSP_API_VERSION,
|
||||||
|
.ident = "IIR filter"
|
||||||
};
|
};
|
||||||
|
|
||||||
SSNES_API_EXPORT const ssnes_dsp_plugin_t*
|
SSNES_API_EXPORT const ssnes_dsp_plugin_t*
|
||||||
|
@ -260,6 +260,9 @@
|
|||||||
# Reset the emulated SNES.
|
# Reset the emulated SNES.
|
||||||
# input_reset = h
|
# input_reset = h
|
||||||
|
|
||||||
|
# Configures DSP plugin
|
||||||
|
# input_dsp_config = c
|
||||||
|
|
||||||
# Pause gameplay when window focus is lost.
|
# Pause gameplay when window focus is lost.
|
||||||
# pause_nonactive = true
|
# pause_nonactive = true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user