all repos — mgba @ 3b24e94018c2f26f503db72b058444882fff4ccf

mGBA Game Boy Advance Emulator

3DS: Use blip_add_delta_fast for a small speed improvement
Jeffrey Pfau jeffrey@endrift.com
Mon, 22 Feb 2016 21:09:05 -0800
commit

3b24e94018c2f26f503db72b058444882fff4ccf

parent

63f14876c58e81867cc01bfb1165708fa17867c4

3 files changed, 9 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -20,6 +20,7 @@ - Qt: Add preset for DualShock 4

- 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:
M src/gb/audio.csrc/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.csrc/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;