From 3b24e94018c2f26f503db72b058444882fff4ccf Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 22 Feb 2016 21:09:05 -0800 Subject: [PATCH] 3DS: Use blip_add_delta_fast for a small speed improvement --- CHANGES | 1 + src/gb/audio.c | 4 ++++ src/gba/audio.c | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/CHANGES b/CHANGES index 2eebcb87a..1600c910d 100644 --- a/CHANGES +++ b/CHANGES @@ -20,6 +20,7 @@ Misc: - SDL: Remove default gamepad mappings - Qt: Update 360 input profile on OS X to reflect newer drivers - Qt: Remove use of NaN + - 3DS: Use blip_add_delta_fast for a small speed improvement 0.4.0: (2016-02-02) Features: diff --git a/src/gb/audio.c b/src/gb/audio.c index 21cf5fd20..1a4acfab6 100644 --- a/src/gb/audio.c +++ b/src/gb/audio.c @@ -10,6 +10,10 @@ #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; diff --git a/src/gba/audio.c b/src/gba/audio.c index 3e5e181d5..a4d12385e 100644 --- a/src/gba/audio.c +++ b/src/gba/audio.c @@ -11,6 +11,10 @@ #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;