Jump to content
  • Advertisement
Sign in to follow this  
g8minhquan

Play music file while render game graphics

This topic is 4508 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

I'm building my first 3d game using Orge3d, How can I play music file while the game running? Do I have to use another thread? Any help would be apreciated, thanks

Share this post


Link to post
Share on other sites
Advertisement
Any decent sound library (such as FMod) will automatically play the sound in a separate thread. You just tell it to start playing.

Share this post


Link to post
Share on other sites
My game also have a network module

Is there any chance that the music playing be corrupted when network events occur?

Share this post


Link to post
Share on other sites
Thanks for your answer :D
FMOD seems free to noncommercial project only
Is there any LGPL sound lib that can compare to FMOD?
hehe, maybe my online game can make money one day
Just kidding

Share this post


Link to post
Share on other sites
Quote:
Original post by g8minhquan
My game also have a network module

Is there any chance that the music playing be corrupted when network events occur?


This is very unlikely; a decent modern operating system (and NT too, I guess [grin]) should have decent thread scheduling and will keep all of the threads running well enough.

You may run into some problems with extremely low resource environments (like a Pentium 75 or something) or seriously defective audio drivers but this is not a concern for the most part. A multithreaded design like this should be fine, but it can be proven fully via prototyping.

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!