The Daily Click ::. Forums ::. Klik Coding Help ::. Simple question about the DMC2 object
 

Post Reply  Post Oekaki 
 

Posted By Message

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
15th October, 2007 at 19:55:29 -

I was wondering how do you convert the 'Stream POS' (which is the point where the music has been played) to regular time such as 3:46. (3 minutes and 46 seconds played)??? any idea anyone? or do you guys use some other object for playing mp3s?

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

Kai Proton



Registered
  31/01/2005
Points
  201

Wii Owner
16th October, 2007 at 04:07:27 -

I tryed using the the player before,

and i had to make a counter run it along side of the screen as a test to work out the times,

i think there was an example online like that too..


oops forgot,
then when the counter =18181772 (or what ever it is when its at the point you want to loop)
set the music to start again,

Image Edited by the Author.

 
----------------------
Time for a Sexy Party!
----------------------

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
16th October, 2007 at 04:19:32 -

Edit: Use StreamPosInSeconds instead of StreamPos. Here's the expression to display the elapsed time in 12:34 format:

str$((Get StreamPosInSeconds("DMC2 Object") / 60)) + ":" + str$((Get StreamPosInSeconds("DMC2 Object") Mod 60))

Image Edited by the Author.

 
n/a

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
17th October, 2007 at 15:25:17 -

haha, thanks a lot man. i cant believe i didnt see the streamPOSinseconds option.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
20th October, 2007 at 18:29:29 -

is there anyway to tell the dmc object to get streampos from streamposinseconds? you see, the problem i have is that in mmf, every value is stored upto 10 digits. that roughly translates into 4:04 of an audio file. if the track's length is more than 4:04, it wont work properly with the mp3 player im making. so i need to store streampos in seconds but how do i tell the dmc2 object to get it in seconds as well??

oh, i tried to get stream pos by percentage but its such a piece of shite that mmf doesnt support floating point numbers. any help will be most appreciated as always.

Image Edited by the Author.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
20th October, 2007 at 18:56:51 -

nvm, i found a work around.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!
   

Post Reply



 



Advertisement

Worth A Click