3DS: Use blip_add_delta_fast for a small speed improvement
Jeffrey Pfau jeffrey@endrift.com
Mon, 22 Feb 2016 21:09:05 -0800
3 files changed,
9 insertions(+),
0 deletions(-)
M
src/gb/audio.c
→
src/gb/audio.c
@@ -10,6 +10,10 @@ #include "core/sync.h"
#include "gb/gb.h" #include "gb/io.h" +#ifdef _3DS +#define blip_add_delta blip_add_delta_fast +#endif + #define FRAME_CYCLES (DMG_LR35902_FREQUENCY >> 9) const uint32_t DMG_LR35902_FREQUENCY = 0x400000;
M
src/gba/audio.c
→
src/gba/audio.c
@@ -11,6 +11,10 @@ #include "gba/io.h"
#include "gba/serialize.h" #include "gba/video.h" +#ifdef _3DS +#define blip_add_delta blip_add_delta_fast +#endif + mLOG_DEFINE_CATEGORY(GBA_AUDIO, "GBA Audio"); const unsigned GBA_AUDIO_SAMPLES = 2048;