Jet3D Project News CVS Log Users Developers Related stuff

 2000/02/03 08:28:14

cyrius 


Added MP3 player functions in sound.h
jeMp3_LoadSoundDef
jeMp3_FreeSoundDef
and jeMp3_PlaySoundDef
currently jeMp3_PlaySoundDef does not work as the function "BOOL RenderFile( unsigned short * szFileName )" in Mp3Mgr.c
wants a filename and not an object in memory. The inclusision of these functions doesnt not cause the engine to crash unless
the mp3 functions are called so I included them in the CVS just in case someone could figure out the problem. If not, then I will just
go back to the old method.
Example usage of new code (for anyone interested in debuging):

jeMp3_Def *def;
jeMp3 *mp3file;
jeVFile *VFile;
VFile = jeVFile_OpenNewSystem(NULL,JE_VFILE_TYPE_DOS,"music\\file.mp3",NULL,JE_VFILE_OPEN_READONLY);
if ( ! VFile )
//error
def = jeMp3_LoadSoundDef(VFile);
mp3file = jeMp3_PlaySoundDef(def, 0, JE_FALSE);
--Timothy Roff (CyRiuS)

  Files affected:
   change_log.txt
   src/jet/Update_Jet_Files.bat
   src/jet/JetEngine/Sound.c
   src/jet/JetEngine/Sound.h
   src/jet/JetEngine/Mp3Mgr/Mp3Mgr.c
   src/jet/JetEngine/Mp3Mgr/Mp3Mgr.h

[Jet3D Project] [News] [CVS Log] [Users] [Developers] [Related stuff]