[haiku-development] Re: Calculate time in minutes

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-development@xxxxxxxxxxxxx" <haiku-development@xxxxxxxxxxxxx>
  • Date: Mon, 3 Dec 2012 19:41:56 -0500

On Mon, Dec 3, 2012 at 7:32 PM, Giovanni Mugnai <musical777@xxxxxxxxx> wrote:
> If i grabs "%s - %d:%d" From LeftList.cpp - Line 82,28
> and i puts this in jpWindow.cpp - Line 608,24
> I obtain 0:0 in calculation of time. So i can guess that the formula
> of time calculation always gives a 0:0?

What this tells me is that the fAudioInfo.total_time variable is not
getting set. Looking at the LeftList class it looks like that variable
get's set when LeftList::MessageReceived() get called with the
B_SIMPLE_DATA message. So you have to figure out where that message
get sent.

Other related posts: