FMOD organisation
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
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()
.
.
.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement