Sign in to follow this  
g8minhquan

Play music file while render game graphics

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this