Jump to content
  • Advertisement
Sign in to follow this  
timmay314

A basic architecture question

This topic is 4891 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've only written one half decent game and my system for dealing with sounds was terrible. I'm working on another one now and I definitely want to make it easier to use (I'm using Dx and C++). My design for this one is basically using a singleton sound manager class that holds all of the DirectAudio interfaces as well as all the sounds and you just call its methods to play certain sounds, but I don't like the design very well. What kind of architectures do other people use?

Share this post


Link to post
Share on other sites
Advertisement
I also beleive it's good. A sound manager singleton which knows how to play sounds, sounds objects (music, samples, and so on). I did something similar myself. It's easy to use, and simple to implement. Not to mention that it isn't coupled to the remaining of your code - and thus can be used in others projects.

Regards,

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Another implemention is to treat the audio module as an audio renderer, exactly like the video renderer, i.e. each frame the audio renderer renders the scene from where the player is in the game world.

Errh, I assume your game is 3D... isn't it ?

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!