Click here to go to the forum index Click here for the home page
 
Author Message

<  TAP and patch development  ~  TAP_Hdd_StopMp3() ctoppy crashes

Page 1 of 1
garyo
Posted: Mon Oct 03, 2005 10:04 pm Reply with quote
Frequent contributor Joined: 24 Aug 2005 Posts: 368 Location: South Beds (Oxford txr)
I'm putting together an improved and standalone MP3 player (So far, random play across /MP3, random within a folder, sequential play within a folder, now and next track info, track and folder skipping and probably more to come).

Everything is working fairly well but when I call TAP_Hdd_StopMp3() prior to exiting it will frequently crach the box. Stop works fine when not exiting, and I can exit without stopping with no problem.

The snippet of code that does this is :
Code:

case RKEY_Exit : // Exit key
       exitFlag = TRUE;
       TAP_Hdd_StopMp3();
       // Have tried a delay in here to no avail!
       TAP_EnterNormal();
       TAP_Exit();
       return 0;


This usually results in a reboot and a (long) file/folder verification.

Has anyone else run into this, or can anyone point out where I might have been dumb?

Cheers
________
grape ape marijuana strain


Last edited by garyo on Fri Feb 04, 2011 5:26 pm; edited 1 time in total
View user's profile Send private message
simonc
Posted: Tue Oct 04, 2005 10:49 pm Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5639 Location: Cheltenham
It might be worth setting an exit flag and then doing TAP_Exit on the next idle event. If that doesn't work how about either leaving the MP3 playing or not providing and exit function Shocked
View user's profile Send private message Visit poster's website
garyo
Posted: Wed Oct 05, 2005 9:27 pm Reply with quote
Frequent contributor Joined: 24 Aug 2005 Posts: 368 Location: South Beds (Oxford txr)
Currently just not stopping the playback - will give the idle idea a try. Cheers.
________
Ford F-650 picture


Last edited by garyo on Fri Feb 04, 2011 5:27 pm; edited 1 time in total
View user's profile Send private message
garyo
Posted: Wed Oct 05, 2005 11:17 pm Reply with quote
Frequent contributor Joined: 24 Aug 2005 Posts: 368 Location: South Beds (Oxford txr)
Idling (not delaying) for 10secs between stopping the MP3 playback and exiting the TAP has certainly improved things but every now and again (1 in 10 ish) the crash still occurs.

When this does happen it is immediately when TAP_Hdd_StpoMp3() is called rather than when TAP_Exit() is called.

Could this be a bug in the API?
________
Toyota H engine


Last edited by garyo on Fri Feb 04, 2011 5:27 pm; edited 1 time in total
View user's profile Send private message
simonc
Posted: Wed Oct 05, 2005 11:27 pm Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5639 Location: Cheltenham
Try getting in touch with sjmarsha on the Aus boards. He's written an mp3 player (my_player) and has probably experienced the same issues. Unfortunately his UI is erm, disappointing. Are you open sourcing your effort? It'd be good to get a player that supports playlists and has the UKTimers style.
View user's profile Send private message Visit poster's website
garyo
Posted: Fri Oct 07, 2005 10:52 am Reply with quote
Frequent contributor Joined: 24 Aug 2005 Posts: 368 Location: South Beds (Oxford txr)
Do you mean the topfield-australia forums? Took a look there and found no reference to "my_player". Can you post a link?

Will definitely open source it when I'm not so embarassed about the state of the code (and the stability!). Is there a UI library for the UKTimers UI? Happy to adopt/integrate if there is.

Gary
________
Mercedes-Benz OC500LE specifications


Last edited by garyo on Fri Feb 04, 2011 5:27 pm; edited 1 time in total
View user's profile Send private message
simonc
Posted: Fri Oct 07, 2005 11:51 am Reply with quote
Frequent contributor Joined: 12 Apr 2005 Posts: 5639 Location: Cheltenham
http://www.topfield-australia.com.au/frm/topic.asp?TOPIC_ID=2755

I think the integration strategy is just to hack in the current source, which isn't exactly ideal! IIRC kidhazy has done some work on making things a bit more modular in the channel surfer.
View user's profile Send private message Visit poster's website

Display posts from previous:  

All times are GMT + 1 Hour
Page 1 of 1

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum