MrDante Posted August 18, 2016 Posted August 18, 2016 (edited) 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 August 18, 2016 by Guest
Wumbaloo Posted August 18, 2016 Posted August 18, 2016 If it's a stream like a radio (h24 online) I don't think you can getSoundLength.
MrDante Posted August 18, 2016 Author Posted August 18, 2016 If it's a stream like a radio (h24 online) I don't think you can getSoundLength. In the case of mod I'm working out, players can use a link to a music stream, that's what I need.
</Mr.Tn6eL> Posted August 18, 2016 Posted August 18, 2016 Example getSoundPosition(sound)/getSoundLength(sound)*w Replace w variable with your progress bar width
MrDante Posted August 18, 2016 Author Posted August 18, 2016 Example getSoundPosition(sound)/getSoundLength(sound)*w Replace w variable with your progress bar width Thank you very much! You saved me, I do not know how to thank you
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now