import: stub out the jlSound functions for the GS
This commit is contained in:
parent
0c3ed17dd4
commit
f9c800bc91
1 changed files with 91 additions and 0 deletions
91
joeylib/src/iigs/sound.c
Normal file
91
joeylib/src/iigs/sound.c
Normal file
|
@ -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)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue