all repos — mgba @ 8fcd095b037f332efe00cc6002507ad2252d7f39

mGBA Game Boy Advance Emulator

GBA Audio: #define some macros BEFORE we use them
Jeffrey Pfau jeffrey@endrift.com
Mon, 30 Mar 2015 02:22:29 -0700
commit

8fcd095b037f332efe00cc6002507ad2252d7f39

parent

cab9f3343b64865761243cf3014cbcb4d6771c56

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/gba/audio.hsrc/gba/audio.h

@@ -11,6 +11,9 @@ #include "macros.h"

#include "util/circle-buffer.h" +#define RESAMPLE_NN 0 +#define RESAMPLE_BLIP_BUF 2 + #if RESAMPLE_LIBRARY == RESAMPLE_BLIP_BUF #include "third-party/blip_buf/blip_buf.h" #endif

@@ -18,9 +21,6 @@

struct GBADMA; extern const unsigned GBA_AUDIO_SAMPLES; - -#define RESAMPLE_NN 0 -#define RESAMPLE_BLIP_BUF 2 DECL_BITFIELD(GBAAudioRegisterEnvelope, uint16_t); DECL_BITS(GBAAudioRegisterEnvelope, Length, 0, 6);