import: rough in jlSongXXX functions

This commit is contained in:
Jason Andersen 2021-01-13 21:26:11 -05:00
parent f9c800bc91
commit e0e1b9f286
2 changed files with 179 additions and 0 deletions

101
joeylib/src/iigs/song.c Normal file
View file

@ -0,0 +1,101 @@
/*
JoeyLib NTP Player
*/
#include "song.h"
/*
jlSongT - A pointer to single song, including its 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 */

78
joeylib/src/iigs/song.h Normal file
View file

@ -0,0 +1,78 @@
/*
JoeyLib NTP Player
*/
#ifndef JL_SONG_H
#define JL_SONG_H 1
#endif
/*
jlSongT - A pointer to single song, including its 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 */