FS#12006 - Android: OGG, SPX, MP3 playback problem

Attached to Project: Rockbox
Opened by Tuomas Airaksinen (tuma) - Saturday, 12 March 2011, 11:34 GMT
Task Type Bugs
Category Music playback
Status Unconfirmed
Assigned To No-one
Operating System Android
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


I'm using revision 29572 of android port. Host system is Samsung Galaxy 3 i5800, with 240x400 resolution display, with version 2.2 (Froyo) of Android.

The problem is as follows. When trying to start playback of OGG or SPX files, the playback does not start occasionally (the change is maybe less than 20% to have playback). By rewinding randomly it is possible to get it start playback. The same behaviour occurs when starting from bookmarks and from file explorer. The problem occurs with default config file.

Tried with MP3 and had the same problem. The problem may be with other codecs as well but I have not tried it so extensively.

Best regards
This task depends upon

Comment by Tuomas Airaksinen (tuma) - Saturday, 12 March 2011, 11:35 GMT
Problem does not occur with Android Eclair (2.1) on my phone. I faced the problem when I upgraded my Android system.
Comment by Cuan van Aswegen (cuan) - Sunday, 29 May 2011, 06:07 GMT
I have the same problem. When I select a file for playback, it does not start, but scanning forward slightly will get the playback going.
rev 29922 and using it on motorola defy 2.1 and a htc tattoo with cyanogenmod 7 2.3.4.
Comment by Dominik Riebeling (bluebrother) - Sunday, 29 May 2011, 07:57 GMT
Can you try if this is possibly related / improved by  FS#12064 ?
Comment by Tuomas Airaksinen (tuma) - Sunday, 29 May 2011, 08:15 GMT
Dominik: I tried patch v3 of #FS12064 yesterday, and noticed no change at all.
Comment by Dominik Riebeling (bluebrother) - Sunday, 29 May 2011, 12:52 GMT
Can you try the first patch in the task? The latest (i.e. v3) patch doesn't work for me while the first does.
Comment by Tuomas Airaksinen (tuma) - Sunday, 29 May 2011, 18:50 GMT
Dominik: Ok tried now. Unfortunately it seems that neither that patch does have effect in my device.
Anyway, good to hear that someone is trying to figure out this problem:) I am willing to do my best in testing.
Comment by Dominik Riebeling (bluebrother) - Sunday, 05 June 2011, 11:45 GMT
Please try current svn, some improvements have been committed yesterday and this morning.
Comment by Tuomas Airaksinen (tuma) - Sunday, 05 June 2011, 12:36 GMT
Tried but still no change. :/
Comment by Dominik Riebeling (bluebrother) - Sunday, 24 July 2011, 10:24 GMT
Is this still an issue with a current build?
Comment by Tuomas Airaksinen (tuma) - Sunday, 24 July 2011, 10:49 GMT
Yes. Tried a moment ago with revision 30203.
Comment by Tuomas Airaksinen (tuma) - Wednesday, 10 August 2011, 21:51 GMT
Great news! Now it works! I traced back to the revision 30239, which fixes this problem -- i.e. 30238 does not work and 30239 works.

Now there seems to a new issue with pause/stop functionality. Stop is causing segfault, pause/unpause is not working either as it should. I can report more precisely as a separate bug, or should I do it here?
Comment by Tuomas Airaksinen (tuma) - Friday, 12 August 2011, 05:17 GMT
I found a workaround to the bug I described in last comment: press pause with widget, wait a second such that rockbox icon disappears in icon bar and press top. Then you are free to choose another bookmark/playlist/whatever or continue playback by pressing play/pause in widget again.