[haiku-development] Calculate time in minutes

  • From: Giovanni Mugnai <musical777@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 3 Dec 2012 19:38:36 +0100

Hi,

I'm working on a function to calculate time in minutes for audio CD.
Size in megabyte is correctly calculated, but time is not calculated.

This is the part about audio/time calculation:
http://pastebin.com/m6gkPSDv and http://pastebin.com/YRkVWFbQ (doesn't
work)
And this is the part about size calculation:
http://pastebin.com/JbQhU9QJ (works ok)

What i miss and what is wrong?

Thank you.

Other related posts: