aboutsummaryrefslogtreecommitdiff
path: root/c/echo.h
diff options
context:
space:
mode:
authorJavier Degirolmo2012-07-09 09:40:47 -0300
committerJavier Degirolmo2012-07-09 09:40:47 -0300
commit5316d8125babafb0200f84e4c3a3796b4f1374c0 (patch)
tree4330b2bb5dfd8cd1655da4fe8d020a98b0e80373 /c/echo.h
parent7acb3981cda42444d44c531377116620ad6fe441 (diff)
Workaround for linker issue, completely ditches the old way of doing instrument lists though. Will update the README in the next commit (working on that now)
Diffstat (limited to 'c/echo.h')
-rw-r--r--c/echo.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/c/echo.h b/c/echo.h
index edeb08b..c571443 100644
--- a/c/echo.h
+++ b/c/echo.h
@@ -1,20 +1,6 @@
#ifndef ECHO_H
#define ECHO_H
-/*
- * Macros used to define instrument lists
- * Yeah, this thing is a mess
- */
-#define ECHO_LIST_START(name) \
- static const unsigned char name[] = {
-#define ECHO_LIST_ENTRY(addr) \
- ((unsigned long)(addr) >> 8 & 0x7F) | 0x80, \
- (unsigned long)(addr) & 0xFF, \
- ((unsigned long)(addr) >> 15 & 0x7F) | \
- ((unsigned long)(addr) >> 16 & 0x80)),
-#define ECHO_LIST_END \
- 0x00 };
-
/* Echo commands */
enum {
ECHO_CMD_NONE, /* 0x00 - No command */
@@ -31,7 +17,7 @@ enum {
#define ECHO_STAT_BUSY 0x8000 /* Echo still didn't parse command */
/* Function prototypes */
-void echo_init(void);
+void echo_init(const void **);
void echo_play_bgm(const void *);
void echo_stop_bgm(void);
void echo_play_sfx(const void *);