Playing multimedia
i am looking for the best way to play multimedia in my game i am designing
what someone here have a suggestion on playing AVI , and midi
the avi should be played with sound that is why lesson 35 is not suitable
and the midi is to be played in background and should not be affected by other
sound effects
thanks for the help
BlackRyder
I recommend FMOD, it's free for non-commercial use and is really good.
--
Cheers,
Darren Clark
Cheers,
Darren Clark
something more simple????
i dont want to build right now a huge library... i mean it is really cool
the FMOD library it does alot of cool stuff but it is too complicated
i want something really easy... KIS type (Keep it simple :-) )
10x in advance
i dont want to build right now a huge library... i mean it is really cool
the FMOD library it does alot of cool stuff but it is too complicated
i want something really easy... KIS type (Keep it simple :-) )
10x in advance
FMOD is really super-easy to implement in a project, it just looks unduely complicated due to the huge array of things it can do. Here's a quick example of how to use it:
For MS Visual C++ you'll need to include 'fmodvc.lib' as well.
Hope that helped.
// include files#include "./fmod.h"#include "./fmod_errors.h"/* initialise */// initialise FMOD with 32 channels and 44100KHzFSOUND_Init(44100, 32, 0);/* stream */// declare a streamFSOUND_STREAM* stream;// load streamstream = FSOUND_Stream_Open("foo.ogg", 0, 0, 0);// play streamFSOUND_Stream_Play(FSOUND_FREE, stream);// free streamFSOUND_Stream_Close(stream);/* sample */// declare a sampleFSOUND_SAMPLE* sample;// load sampleFSOUND_Sample_Load(FSOUND_FREE, "bar.wav", 0, 0, 0);// play sampleFSOUND_PlaySound(FSOUND_FREE, sample);// free sampleFSOUND_Sample_Free(sample);/* de-initialise */// kill FMODFSOUND_Close();
For MS Visual C++ you'll need to include 'fmodvc.lib' as well.
Hope that helped.
--
Cheers,
Darren Clark
Cheers,
Darren Clark
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement