From 3aacf3d2cedfdeca49ceb57533389870bfc688a9 Mon Sep 17 00:00:00 2001 From: sik Date: Sun, 23 Jul 2017 03:20:35 -0300 Subject: Now with pausing and other niceties --- c/echo.h | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'c/echo.h') diff --git a/c/echo.h b/c/echo.h index 56088b6..c1d6062 100644 --- a/c/echo.h +++ b/c/echo.h @@ -14,6 +14,7 @@ enum { ECHO_CMD_STOPBGM, /* 0x05 - Stop BGM playback */ ECHO_CMD_RESUMEBGM, /* 0x06 - Resume BGM playback */ ECHO_CMD_SETPCMRATE, /* 0x07 - Set PCM rate */ + ECHO_CMD_PAUSEBGM, /* 0x08 - Pause BGM playback */ }; /* Echo status flags */ @@ -23,20 +24,24 @@ enum { #define ECHO_STAT_BUSY 0x8000 /* Echo still didn't parse command */ /* Function prototypes */ -void echo_init(const void **); -void echo_play_bgm(const void *); +void echo_init(const void **list); +void echo_play_bgm(const void *esf); void echo_stop_bgm(void); -/*void echo_resume_bgm(void);*/ -void echo_play_sfx(const void *); +void echo_pause_bgm(void); +void echo_resume_bgm(void); +void echo_play_sfx(const void *esf); void echo_stop_sfx(void); -void echo_play_direct(const void *); -void echo_set_volume(uint8_t); -void echo_set_volume_ex(const uint8_t *); -void echo_set_pcm_rate(uint8_t); +void echo_play_direct(const void *esf); +void echo_set_volume(uint8_t vol); +void echo_set_volume_ex(const uint8_t *vol_list); +void echo_set_pcm_rate(uint8_t rate); uint16_t echo_get_status(void); -void echo_send_command(uint8_t); -void echo_send_command_addr(uint8_t, const void *); -void echo_send_command_byte(uint8_t, uint8_t); +uint8_t echo_get_flags(void); +void echo_set_flags(uint8_t flags); +void echo_clear_flags(uint8_t flags); +void echo_send_command(uint8_t cmd); +void echo_send_command_addr(uint8_t cmd, const void *addr); +void echo_send_command_byte(uint8_t cmd, uint8_t byte); /* Deprecated functions */ static void (* const echo_send_command_ex)(uint8_t, const void *) = -- cgit v1.2.3