Archived

This topic is now archived and is closed to further replies.

Ekim_Gram

FMOD Tutorials?

Recommended Posts

Seeing as how my game is coming along quite good, it''s come time for me to implement sound and sound FX. I''ve chosen FMOD due to it''s great popularity (according to last week''s poll) but I can''t seem to find any good tutorials. The documentation that came with it is wayyy too confusing; it''s more of a reference for somebody who at least knows how to properly initialize it and play a song. Can some of you kind people provide some?
VG-Force | Ekim Gram Productions

Share this post


Link to post
Share on other sites
I am familiar with fmod. I could help you with the basics of using FMOD. If you have any specific questions post here. But to initialize is very easy:


if (FSOUND_GetVersion() < FMOD_VERSION)
{
//printf("Error : You are using the wrong DLL version! You should be using FMOD %.02f\n", FMOD_VERSION);

return false;
}

// TO DO - Check caps, allow changeing of values //

FSOUND_SetOutput(FSOUND_OUTPUT_DSOUND);
FSOUND_SetDriver(0); //Primary

FSOUND_SetSpeakerMode( FSOUND_SPEAKERMODE_SURROUND );
FSOUND_SetMixer(FSOUND_MIXER_AUTODETECT);
FSOUND_SetSFXMasterVolume( mSoundFXVolume );

if (!FSOUND_Init(44100, 32, 0))
{
//printf("Init: %s\n", FMOD_ErrorString(FSOUND_GetError()));

return false;
}


[edited by - pjcast on April 6, 2004 4:44:07 PM]

Share this post


Link to post
Share on other sites