Ok Ive got the repository, Ill begin familiarizing myself with the data and figure out a way to implement sound.
How should I go about this? Make code that plays sounds at specific times or...?
Is it possible to modify qgears to allow easy sound handling, like a custom tool?
Just trying to figure out the best route to follow here lol.
It already was implemented once in old source.
http://q-gears.hg.sourceforge.net/hgweb/q-gears/q-gears/file/b949ecad45b9/src_old/core/mediaMost part of code can be taken from there. You need yo use additional library for this.
Create your own branch in mercurial and work in there. Just gather changes from me from time to time. I will not take it to main brunch until it will be compleated, but I can see changes and can give you some guidelines here.
First of all implement manager that handles sound. There are a lot of managers now, just copy main idea. Manager created in main() function and can be accessed from anywhere by getSingleton().
Next add xml reader for songs and sounds. It need to read something like this
<musics>
<music name="Opening" file_name="music/opening.ogg" loop="10.5" />
</musics>
I already add placeholders for music description file in data directory.
Next thing is to add lua functions to handle playing sounds. There are already a lot of managers that was added to lua via luabind, just watch an examples.
That's it =)