Play music file while render game graphics
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
Any decent sound library (such as FMod) will automatically play the sound in a separate thread. You just tell it to start playing.
My game also have a network module
Is there any chance that the music playing be corrupted when network events occur?
Is there any chance that the music playing be corrupted when network events occur?
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
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
Here is one:
www.openal.org
I've never used it myself but I hear opinions it's slightly more difficult than FMOD
www.openal.org
I've never used it myself but I hear opinions it's slightly more difficult than FMOD
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement