Game Development Community

How do I pause music with TGB 1.5.1 indie license

by Conor O Kane · in Torque Game Builder · 09/14/2007 (6:00 am) · 7 replies

I would like to be able to pause music when the player pauses the game, and resume it from the same position. Is this possible with TGB 1.5.1 indie license?

I see that there is a function called alxGetStreamPosition, but there doesn't seem to be any way to play a file from a certain position.

#1
09/14/2007 (7:25 am)
I don't know that it's possible.

If you have TGB pro, you can try and integrate the VMPlayer resource, but it sounds like you don't.

I haven't yet integrated this resource, so I can't send you a binary copy.

Perhaps we should ask really nicely that this resource be integrated into 1.5.2? :)

--clint
#2
09/15/2007 (5:03 am)
This is me asking nicely :-)
#3
09/15/2007 (11:56 am)
I just integrated VMPlayer, it was very quick and easy to compile into the engine and works like a charm.

Conor, if you had the pro license with source you could do the same very easily ;)

TBH I was surprised this wasn't a core feature. At the least, pausing and resuming I assumed would be mandatory, it's only when I went looking for pause and resume functions that I realized there weren't any built in.
#4
09/15/2007 (12:12 pm)
Alex: If the only change you've made is to add in VMPlayer, is there any chance you'd be interested in posting the binary for non-pro users?
#5
09/15/2007 (12:20 pm)
How does that sit with the GG license?
#6
09/15/2007 (12:29 pm)
Also which files do you need, both torquegamebuilder.exe and tgbgame.exe?
#7
09/15/2007 (1:16 pm)
Oh interesting -- I don't think I was aware that there were two binaries now. I'm still used to the old paradigm.

Under the 1.1.3 TGB license, the only thing that was protected by the license was the source code to the engine and the binaries/source of the editor scripts. It was perfectly fine to distribute patched executables for other people to use -- AFAIK, TGB is only licensed off of the editors. (mods, please strike me down with your thunderbolts of wrath if I'm wrong about this, but I'm pretty sure it's correct)

However, I don't know if the license has been changed in 1.5.x -- that would be worth me looking into.

I personally don't need a compiled binary -- I'm a Pro user (in theory -- not that I've ever gone through the hassle of compiling TGB), but I was thinking that Conor (and others) might be able to find it useful until GG integrates the VMPlayer patch into the main trunk.

--clint