diff --git a/joeylib/src/iigs/sound.c b/joeylib/src/iigs/sound.c new file mode 100644 index 0000000..3913a48 --- /dev/null +++ b/joeylib/src/iigs/sound.c @@ -0,0 +1,91 @@ +/* + JoeyLib Sound for the IIgs +*/ + +#include "sound.h" + +#ifndef NULL +#define NULL 0 +#endif + +/* Call this before any other Sound Function */ +void jlSoundStartup() +{ +} + +/* Call this when done, for proper shutdown */ +void jlSoundShutdown() +{ +} + + +/* + Load .jla Sound Bank into memory, or into DOC RAM +*/ +jlSoundT jlSoundLoad(const char* pSoundBankPath) +{ + jlSoundT result = NULL; + + return result; +} + +/* + Load .jla Sound Bank from memory, into DOC RAM + DO NOT FREE THIS MEMORY (pointers in the library will point into it) + it may be free after the jlSoundFree hsa been called +*/ +jlSoundT jlSoundLoadAt(const char* pBankInRAM) +{ + jlSoundT result = NULL; + + return result; +} +/* + Returns back an index into the audio definition table, which is required + in order to call jlSoundPlay + + Returns -1 if the sound isn't found +*/ +signed short jlSoundFind(jlSoundT soundbank, const char* sfxName) +{ + signed short result = -1; + + return result; +} + +/* + Play a Sound +*/ +void jlSoundPlay(jlSoundT soundbank, signed short audio_index) +{ +} + +/* + Return the number of SFX in this Bank +*/ +signed short jlSoundGetNumSFX(jlSoundT soundbank) +{ + signed short result = 0; + + return result; +} + +/* + Return a C string name of the sound effect with this index + DO NOT FREE THIS POINTER +*/ +char *jlSoundGetName(signed short audio_index) +{ + char* pResult = NULL; + return pResult; +} + +/* + Called when you are done with this soundbank +*/ +void jlSoundFree(jlSoundT soundbank) +{ +} + + +