Jump to content
  • Advertisement
Sign in to follow this  
phi

FMOD organisation

This topic is 4480 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 working on an MP3 player to practise my C++ skills. I've started using FMOD but I'm not sure how my program should be organised. I'll be using wxWidgets for the GUI. Should I be creating header files that allow me to call functions (such as setVolume, getVolume etc...) The function setVolume is a function that I've created that encompasses the commands of FMOD. Then in my event based program (ie the GUI code), do I just say "if button clicked then setVolume(parameters)"? Or is there a better way I should be doing this? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by phi
I'm working on an MP3 player to practise my C++ skills. I've started using FMOD but I'm not sure how my program should be organised. I'll be using wxWidgets for the GUI. Should I be creating header files that allow me to call functions (such as setVolume, getVolume etc...) The function setVolume is a function that I've created that encompasses the commands of FMOD. Then in my event based program (ie the GUI code), do I just say "if button clicked then setVolume(parameters)"? Or is there a better way I should be doing this?
Thanks


If your goal is to improve your c++ skills, then I suggest you to use an Object Oriented design. For example, your sound can be encapsulated in a class with many methods:
setVolume()
getVolume()
pause()
play()
setPosition()
getPosition()
.
.
.

Share this post


Link to post
Share on other sites
Hi, thanks for the reply. Although this MP3 player is just a test on using C++ with FMOD, I'll be expanding on it to make it a larger project. So, I want a solid foundation to work on 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!