Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Current play time of Music

Author
Message
mrpmorris
12
Years of Service
User Offline
Joined: 28th Sep 2012
Location:
Posted: 25th Nov 2012 17:41
Using the AGK.DLL is there a way to determine how far into the song is currently being played? I need to sync visual effects to specific times in the song.
mrpmorris
12
Years of Service
User Offline
Joined: 28th Sep 2012
Location:
Posted: 25th Nov 2012 17:58
C++ or whatever, I don't mind as I can translate - this is "Level 2"
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 25th Nov 2012 18:52
There are no AppGameKit commands (any tier) at present that let you know where you are in the music.

You can write code to hopefully keep track. You can set a variable to the current time when you start the sound. Then you calculate playing time by subtracting the saved time from the current time. This works as long as the music isn't paused. If you pause the music, you'll need to keep track of paused time, or update your saved start to add time while paused.

Cheers,
Ancient Lady
AGK Community Tester
mrpmorris
12
Years of Service
User Offline
Joined: 28th Sep 2012
Location:
Posted: 28th Nov 2012 14:42
That's a shame, and thanks

Login to post a reply

Server time is: 2024-11-24 05:07:07
Your offset time is: 2024-11-24 05:07:07