aboutsummaryrefslogtreecommitdiff
path: root/c/echo.h
diff options
context:
space:
mode:
authorJavier Degirolmo2013-04-22 05:30:00 -0300
committerJavier Degirolmo2013-04-22 05:30:00 -0300
commiteecc39834949e6affbf3268cb5405a296cd12216 (patch)
treed97fa90e4610ccc1afc52cf88b8db27b034ef3d4 /c/echo.h
parent40459d3587f607753dd2f5036d2b2471cdf23add (diff)
Now you can change the sample rate of PCM instruments
Diffstat (limited to 'c/echo.h')
-rw-r--r--c/echo.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/c/echo.h b/c/echo.h
index 8484c59..086535e 100644
--- a/c/echo.h
+++ b/c/echo.h
@@ -12,7 +12,8 @@ enum {
ECHO_CMD_STOPSFX, /* 0x03 - Stop SFX playback */
ECHO_CMD_PLAYBGM, /* 0x04 - Play a BGM */
ECHO_CMD_STOPBGM, /* 0x05 - Stop BGM playback */
- ECHO_CMD_RESUMEBGM /* 0x06 - Resume BGM playback */
+ ECHO_CMD_RESUMEBGM, /* 0x06 - Resume BGM playback */
+ ECHO_CMD_SETPCMRATE, /* 0x07 - Set PCM rate */
};
/* Echo status flags */
@@ -27,8 +28,14 @@ void echo_stop_bgm(void);
void echo_resume_bgm(void);
void echo_play_sfx(const void *);
void echo_stop_sfx(void);
+void echo_set_pcm_rate(uint8_t);
uint16_t echo_get_status(void);
void echo_send_command(uint8_t);
-void echo_send_command_ex(uint8_t, const void *);
+void echo_send_command_addr(uint8_t, const void *);
+void echo_send_command_byte(uint8_t, uint8_t);
+
+/* Deprecated functions */
+static void (* const echo_send_command_ex)(uint8_t, const void *) =
+ echo_send_command_addr;
#endif