maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   FlipClock Beta (https://talk.maemo.org/showthread.php?t=32832)

jolouis 2009-12-16 22:08

Re: FlipClock Beta
 
Quote:

Jolouis, maybe a refinement on the default folder that contains our sound files. In the "Set Alarms" screen, "Mode" is set for "Sound", "Loop" is enabled, and I have already selected "Song.mp3" from the "Sounds" folder on my external memory card. Once I do this, it should remember that default folder so everytime I click on "Alarm Sound" the contents of that folder is displayed. Many times it reverts back to the internal flash which is where our applications are stored.
Once you've selected a sound, if you go to change that sound it will already be pointing at the folder that contained the previous sound file. The only time it will revert to the "default folder" is if no sound was previously selected. I guess I could tweak it so that if the current alarm doesn't have a sound associated with it, when you browse for a file it reverts to the directory of an alarm that does have a sound file... it might seem a bit strange if your files are all over the place, but okay I can do that..

Quote:

I noticed you forgot to seed the random number generator, so although the tracks are chosen at random, you get the same tracks every time flip clock starts.
Perhaps adding this somewhere:

#include <time.h>

srand( (unsigned)time(NULL) );
Yea thanks! I noticed that this morning when I did some more testing and had added the code you posted above immediately before the random call so that it's always "more random"! ;-)

esaym 2009-12-17 15:52

Re: FlipClock Beta
 
Quote:

Originally Posted by jolouis (Post 430717)
I still have some concerns over the stability of audio playback (had the nice fortune of having my alarm this morning play a few songs that I seem to have slept through, then lockup completely)... I never did get a bad MP3 sent over my way, but maybe if I keep at it I'll find one of my own that causes the problem...

Yes this has happened to me. Playing/testing flipclock always seems to go fine but twice now I have woken up to flipclock being lockup and having to be forcefully shutdown.

Den in USA 2009-12-17 19:28

Re: FlipClock Beta
 
Quote:

Originally Posted by esaym (Post 432033)
Yes this has happened to me. Playing/testing flipclock always seems to go fine but twice now I have woken up to flipclock being lockup and having to be forcefully shutdown.

Same thing here, locking up when I use the alarm.

jolouis 2009-12-17 21:21

Re: FlipClock Beta
 
Quote:

Originally Posted by Den in USA (Post 432322)
Same thing here, locking up when I use the alarm.

I've had the same problem two days in a row now so I decided to sit down and test it today... and after 12 tries of various attempts to reproduce the problem I can't do it! Damn... I know it's going to happen again tomorrow though... if anyone can figure out what stage of the game thigns are at when they lock up/crash I'd greatly appreciate it so I can find a way of reproducing the issue consistently in order to troubleshoot/fix it!

Den in USA 2009-12-18 06:52

Re: FlipClock Beta
 
Quote:

Originally Posted by jolouis (Post 432483)
I've had the same problem two days in a row now so I decided to sit down and test it today... and after 12 tries of various attempts to reproduce the problem I can't do it! Damn... I know it's going to happen again tomorrow though... if anyone can figure out what stage of the game thigns are at when they lock up/crash I'd greatly appreciate it so I can find a way of reproducing the issue consistently in order to troubleshoot/fix it!

Jolouis, both times that FlipClock locked up was just after the music (mp3 file) begain to play. I noticed that there were black rectangles on the main clock screen as if an email alert was trying to be displayed during the alarm or else some other message like "Unable to connect to one or more accounts" was trying to be displayed.

More detail:
My alarm was set to go off at 8:00am.
In "Alarms Set" screen Mode = "sound", set for "loop", snooze=off.
FlipClock was not even running, not minimized. It runs when there is an alarm condition.

jolouis 2009-12-18 18:48

Re: FlipClock Beta
 
Quote:

Originally Posted by Den in USA (Post 432979)
Jolouis, both times that FlipClock locked up was just after the music (mp3 file) begain to play. I noticed that there were black rectangles on the main clock screen as if an email alert was trying to be displayed during the alarm or else some other message like "Unable to connect to one or more accounts" was trying to be displayed.

More detail:
My alarm was set to go off at 8:00am.
In "Alarms Set" screen Mode = "sound", set for "loop", snooze=off.
FlipClock was not even running, not minimized. It runs when there is an alarm condition.

I think it's to do with the looping code... although why I've run into it I'm not sure, but it's definitely a gstreamer odd ball problem. I've made some changes in the SVN here to try and solve it and will let you know after I test it over the weekend. In the mean time, try it with the "loop" option turned off (i.e. set to "once") and see if that solves the locking up problem.

Thanks!

Den in USA 2009-12-20 04:36

Re: FlipClock Beta
 
Quote:

Originally Posted by jolouis (Post 433728)
I think it's has to do with the looping code... , try it with the "loop" option turned off (i.e. set to "once") and see if that solves the locking up problem.

Thanks!

Thanks, Jolouis, I will not select "loop" and see if it helps.

白い熊 2009-12-20 10:00

Re: FlipClock Beta
 
Quote:

Originally Posted by 白い熊 (Post 429453)
On the N900 segfaults with the same error.

I watch the second triangle approach sixty, when it's at 58 seconds, I guess that's when the minute flip starts, it fails with the above mentioned segfault.

Is there some way to debug why it's failing? I thought maybe some images or whatever missing, as when the minute change animation is coming up it segfaults...

Den in USA 2009-12-20 16:42

Re: FlipClock Beta
 
Jolouis, it seems that since I turned "loop" off the alarm volume no longer slowly increases, it works fine with "loop" on.

sampieter 2010-01-03 16:36

Re: FlipClock Beta
 
I installed 0.9.7 yesterday and it works great. The main theme is, indeed, as good as perfect now.

All the best wishes to everyone for this new year, 2010 !


All times are GMT. The time now is 18:23.

vBulletin® Version 3.8.8