Support and General Use > Recording
Recording countdown timer
Rincewind:
maybe you could get your time from the runtime counter?
but this won't be possible when the player is plugged in :(
Perhaps there is some code there how to get an exact time.
I haven't seen your code yet, but I suppose you did something like
sleep(HZ*x);
Disabeling everything that uses cpu time (and wastes battery) when the player is waiting is a good idea anyway. Make it an option ;D
Mmmm:
--- Quote from: Rincewind on September 04, 2006, 04:36:52 PM ---maybe you could get your time from the runtime counter?
but this won't be possible when the player is plugged in  :(
Perhaps there is some code there how to get an exact time.
I haven't seen your code yet, but I suppose you did something like
  sleep(HZ*x);
Disabeling everything that uses cpu time (and wastes battery) when the player is waiting is a good idea anyway. Make it an option ;D
--- End quote ---
Boosted it only loses 2 seconds per minute...that's rubbish!
To get the timing i'm setting last_tick = current_tick as soon as it is activated and then decreasing by one when current_tick - last_tick >= HZ.
I'm running the whole of the recording loop while I do this as well.
It's fast enough to work without the peakmeter unboosted but it just wont work with it... maybe I should try decreasing within the peakmeter code instead....
If I used a sleep then nothing else would happen while it slept, so then there would definitely be no peakmeters! But it would give spot on timing.
Mmmm:
\o/
\o/
it's working...
It's ticking in time...
\o/
but not only that.....
... it keeps ticking no matter what you are doing!!!!!!!!!!!!! :o
Too good to believe eh?
It certainly is....
I'm not going to post the patch until i've checked it over a bit more.. I still don't believe it! :D
Mmmm:
Alright then, heres the new patch..bug free... ahem...
The timer is now accurate and ticks at all times (not sure about plugins though).
I had it so that it automatically started the recording screen wherever you are too but calling the recording screen from the timer was a bad idea....it crashed quite often but it worked often too..however, that's not good enough.
So if the timer reaches 0 while you are away from the recording screen nothing will happen... when you enter the recording screen next it will automatically start recording.
I thought that a good idea would be to have an icon in the statusbar that is always on when the timer is ticking and flashes or something when it reaches 0. Unfortunately the statusbar is full on the Archos...hmmmm... That'll be for version 4 I think! :D
PS. mborus you can now have up to 128 hours timing! Is that enough? ;D
[attachment deleted by admin, too old]
whatboutbob:
Only 128 hours? Oh man...but there's this gig next monday I wanna record...and I wanted to get started early... ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version