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.

Dark GDK / Sound track position

Author
Message
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 4th Apr 2011 02:05
I want to be able to detect where in the sound track the sound is currently playing. I want to show the play progress on a bar, but I haven't find a way to do this.... Any ideas?

The fastest code is the code never written.
bergice
17
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 15th Apr 2011 04:27
Maybe add a timer?

On sound start play:



Then to see how many milliseconds the sound has been playing:



Lucy in the

Sky with

Diamonds
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 15th Apr 2011 14:10
I fugured it out already. I'm using dbGetSoundData() for the information. It's not easy, but using some math it works.

The fastest code is the code never written.

Login to post a reply

Server time is: 2024-06-15 21:11:16
Your offset time is: 2024-06-15 21:11:16