Skip to main content
gamedev.net
🔒 Locked

Playing multimedia

Started by BlackRyder Sep 5, 2005 at 2:17 PM 2 replies 1.1k views
Original Post
BlackRyder
BlackRyder
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
eSCHEn
eSCHEn
I recommend FMOD, it's free for non-commercial use and is really good.
--
Cheers,
Darren Clark
BlackRyder
BlackRyder
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
eSCHEn
eSCHEn
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:

// 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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.