From e0e1b9f286a5f0c17a1807a8817e1a00cabf7fc3 Mon Sep 17 00:00:00 2001 From: dwsJason Date: Wed, 13 Jan 2021 21:26:11 -0500 Subject: [PATCH] import: rough in jlSongXXX functions --- joeylib/src/iigs/song.c | 101 ++++++++++++++++++++++++++++++++++++++++ joeylib/src/iigs/song.h | 78 +++++++++++++++++++++++++++++++ 2 files changed, 179 insertions(+) create mode 100644 joeylib/src/iigs/song.c create mode 100644 joeylib/src/iigs/song.h diff --git a/joeylib/src/iigs/song.c b/joeylib/src/iigs/song.c new file mode 100644 index 0000000..e6bbeb5 --- /dev/null +++ b/joeylib/src/iigs/song.c @@ -0,0 +1,101 @@ +/* + JoeyLib NTP Player +*/ + +#include "song.h" + +/* + jlSongT - A pointer to single song, including it’s instruments +*/ + +typedef struct +{ +} jlSong_t; + +typedef jlSong_t* jlSongT; + +/* + Startup Song Library +*/ +void jlSongStartup() +{ +} + +/* + Shutdown Song Library +*/ +void jlSongShutdown() +{ +} + +/* + jlSongLoad - Loads a song into memory, and into DOC RAM, so that it's ready + to play +*/ +jlSongT jlSongLoad(const char* pSongPath) +{ + jlSongT result = NULL; + + return result; +} + +/* + jlSongLoadAt - Load a song from memory into DOC RAM + DO NOT FREE THIS MEMORY UNTIL AFTER A CALL TO jlSongFree +*/ +jlSongT jlSongLoadAt(const char* pSongInRAM) +{ + jlSongT result = NULL; + return result; +} + +/* + jlSongPlay + jlSongT song - song handle + jlBool bLoop - Play once, or Loop continuously +*/ +void jlSongPlay(jlSongT song, jlBool bLoop) +{ +} + +/* + Stop the current song +*/ +void jlSongStop(jlSongT song) +{ +} + +/* + bPaused to TRUE to pause the song + bPaused to FALSE to result song from where it is +*/ +void jlSongSetPause(jlSongT song, jlBool bPaused) +{ +} + +/* + Volume from 0 which is silent, to 255 which is the loudest +*/ +void jlSongSetVolume(jlSongT song, U8 volume) +{ +} + +/* +// 0x100 is a tempo of 1x, and is the default +// 0x080 will run the tempo at half speed +// 0x200 will run the tempo at 2X +*/ +void jlSongSetTempo(jlSongT song, U16 tempo) +{ +} + +/* + Release memory and resources +*/ +void jlSongFree(jlSontT song) +{ +} + + +#endif /* JL_SONG_H */ + diff --git a/joeylib/src/iigs/song.h b/joeylib/src/iigs/song.h new file mode 100644 index 0000000..919ca50 --- /dev/null +++ b/joeylib/src/iigs/song.h @@ -0,0 +1,78 @@ +/* + JoeyLib NTP Player +*/ + +#ifndef JL_SONG_H +#define JL_SONG_H 1 +#endif + +/* + jlSongT - A pointer to single song, including it’s instruments +*/ + +typedef struct +{ +} jlSong_t; + +typedef jlSong_t* jlSongT; + +/* + Startup Song Library +*/ +void jlSongStartup(); + +/* + Shutdown Song Library +*/ +void jlSongShutdown(); + +/* + jlSongLoad - Loads a song into memory, and into DOC RAM, so that it's ready + to play +*/ +jlSongT jlSongLoad(const char* pSongPath); +/* + jlSongLoadAt - Load a song from memory into DOC RAM + DO NOT FREE THIS MEMORY UNTIL AFTER A CALL TO jlSongFree +*/ +jlSongT jlSongLoadAt(const char* pSongInRAM); + +/* + jlSongPlay + jlSongT song - song handle + jlBool bLoop - Play once, or Loop continuously +*/ +void jlSongPlay(jlSongT song, jlBool bLoop); + +/* + Stop the current song +*/ +void jlSongStop(jlSongT song); + +/* + bPaused to TRUE to pause the song + bPaused to FALSE to result song from where it is +*/ +void jlSongSetPause(jlSongT song, jlBool bPaused); + +/* + Volume from 0 which is silent, to 255 which is the loudest +*/ +void jlSongSetVolume(jlSongT song, U8 volume); + +/* +// 0x100 is a tempo of 1x, and is the default +// 0x080 will run the tempo at half speed +// 0x200 will run the tempo at 2X +*/ +void jlSongSetTempo(jlSongT song, U16 tempo); + +/* + Release memory and resources +*/ +void jlSongFree(jlSontT song); + + +#endif /* JL_SONG_H */ + +