Jump to content

[SOLVED] The clock of a sound


MrDante

Recommended Posts

Sorry my bad english :(

A Good Morning / Good afternoon / Good evening to all..

I have a problem, I'm doing a radio/music system, streaming, and I wanted to create a progress bar telling the time of music, but I can not in any way ...

I tried getTickCount() to getSoundLenght, setTimer to getSoundLenght, interpolateBetween, no work.

can anybody help me?

Attempt Client :

local xI, yI, zI = interpolateBetween(0, 0, 0, utils.width, 0, 0, (getTickCount()-utils.tick)/getSoundLength(utils.MusicStream), "Linear") 
utils.getLenght = xI 
dxDrawRectangle(x+100, y+90, utils.getLenght, utils.top-5, tocolor(180, 255, 0, 255), false) 

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...