From 8fcd095b037f332efe00cc6002507ad2252d7f39 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 30 Mar 2015 02:22:29 -0700 Subject: [PATCH] GBA Audio: #define some macros BEFORE we use them --- src/gba/audio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gba/audio.h b/src/gba/audio.h index 2aa5953e5..91cc84b1b 100644 --- a/src/gba/audio.h +++ b/src/gba/audio.h @@ -11,6 +11,9 @@ #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 @@ -19,9 +22,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); DECL_BITS(GBAAudioRegisterEnvelope, Duty, 6, 2);