Jump to content
  • Advertisement
Sign in to follow this  
mojtaba_e

help --- mod files instead of midi ?

This topic is 4688 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

dear friends, I wanna know that if i wanna change the tempo of the sound file during the game,if its possible,let me know if there is any music format in high quality that could be used in such a situation, thank you so much ,Mojtaba [Edited by - mojtaba_e on December 19, 2005 9:21:45 AM]

Share this post


Link to post
Share on other sites
Advertisement
I think thats possible for midi. What are you using to play it? If you are using the Windows Multimedia then try using midiStreamProperty() to set the tempo



MMRESULT void SetTempo(DWORD newTemp)
{
MIDIPROPTEMPO PropertyData;
PropertyData.cbStruct = sizeof(MIDIPROPTEMPO);
PropertyData.dwTempo = newTempo;
return midiStreamProperty(midiStream, &PropertyData, MIDIPROP_SET | MIDIPROP_TEMPO);
}




I just made this up, isn't compiled so I don't know if there is any errors. If you are using directX i'm sorry but I havn't worked with it enough to know what to do. I assumed you were using C++.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!