Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#8572 - USLT lyric viewer

Attached to Project: Rockbox
Opened by Lechner Michael (smoking_gnu) - Saturday, 09 February 2008, 20:36 GMT+2
Last edited by Teruaki Kawashima (teru) - Saturday, 09 October 2010, 05:23 GMT+2
Task Type Patches
Category ID3 / meta data
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This viewer reads the USLT lyrics from a mp3 file and displays them using a gui_list.
You have to select "open with.." on a mp3 file in the file browser to show the lyrics.
I tested it on the sim and on my X5.


   lyric_viewer.patch (5.9 KiB)
 lyric_viewer.c |  189 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 CATEGORIES     |    1 
 SOURCES        |    1 
 viewers.config |    1 
 4 files changed, 192 insertions(+)

This task depends upon

Closed by  Teruaki Kawashima (teru)
Saturday, 09 October 2010, 05:23 GMT+2
Reason for closing:  Out of Date
Additional comments about closing:  lrcplayer in SVN would do this.
Comment by Lechner Michael (smoking_gnu) - Monday, 11 February 2008, 21:57 GMT+2
Small update: now it reads the length of the ID3 tag before it starts searching for the lyric tag;
If there's no lyric tag in the file it now doesn't take age anymore till my plugin realizes it ;)
Also a few minor bugfixes and code cleanup.

   lyric2.patch (6.6 KiB)
 CATEGORIES     |    1 
 viewers.config |    1 
 lyric_viewer.c |  218 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 SOURCES        |    1 
 4 files changed, 221 insertions(+)

Comment by Pascal Briehl (ColdSphinX) - Tuesday, 12 February 2008, 06:26 GMT+2
this could probably merged with the sncviewer plugin
http://www.rockbox.org/tracker/task/7432
Comment by x (vmh) - Tuesday, 12 February 2008, 15:55 GMT+2
I added USLT support to the sncviewer back in November 2007 due to some requests, but the plugin wasn't intended for unsynchronized lyrics.
I think it's better to have two different plugins, one for synchronized (sncviewer) and one for unsynchronized lyrics (this one).
Comment by Lechner Michael (smoking_gnu) - Wednesday, 13 February 2008, 12:21 GMT+2
I wrote this plugin for 2 reasons:
1. I thought the sncviewer plugin did NOT support USLT lyrics
2. I wanted to start coding for rockbox anyway.
Comment by George Tamplaru (kratonator) - Sunday, 17 February 2008, 12:40 GMT+2
I am not able to apply this patch. I get (for -p0 to -p5) the following message:

missing header for unified diff at line 5 of patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: CATEGORIES
|=================================================
|--- CATEGORIES (revision 16229)
|+++ CATEGORIES (working copy)
--------------------------
File to patch:

What am I doing wrong?
Comment by Lechner Michael (smoking_gnu) - Sunday, 17 February 2008, 23:36 GMT+2
I did not use ANY -p or --strip option...
The patch works for me...
However I made a new one from the current SVN for you:
   lyric_viewer.diff (6.8 KiB)
 apps/plugins/CATEGORIES     |    1 
 apps/plugins/viewers.config |    1 
 apps/plugins/lyric_viewer.c |  218 ++++++++++++++++++++++++++++++++++++++++++++
 apps/plugins/SOURCES        |    1 
 4 files changed, 221 insertions(+)

Comment by Przemysław Hołubowski (p.h.) - Friday, 11 April 2008, 13:44 GMT+2
Could you adopt it to the new plugin API? (It does not work with recent builds).
Comment by Lechner Michael (smoking_gnu) - Saturday, 12 April 2008, 22:13 GMT+2
Sorry, but I can't compile right now. I'll have a look at it on monday.
Comment by Lechner Michael (smoking_gnu) - Wednesday, 16 April 2008, 20:39 GMT+2
Here's a new, working version (viewports broke the old one) :
Comment by Taylore (trailblaze) - Wednesday, 25 March 2009, 00:38 GMT+2
Was going to try this, and it patched ok, but it did not compile right... May someone please resync this please.. Thanxs, this patch seems really kool..
Comment by Nick G (gersto) - Thursday, 06 August 2009, 22:47 GMT+2
this is what i'm getting when i try to compile. I patched with lyric_viewer.diff and then replaced lyric_viewer.c with the one above. compiling for ipod video 5g (30gb)
CC apps/plugins/lyric_viewer.c
/home/nicholas/Projects/rockbox/apps/plugins/lyric_viewer.c:32: error: conflicting types for ‘rb’
/home/nicholas/Projects/rockbox/apps/plugin.h:900: error: previous declaration of ‘rb’ was here
/home/nicholas/Projects/rockbox/apps/plugins/lyric_viewer.c:37: error: conflicting types for ‘rb’
/home/nicholas/Projects/rockbox/apps/plugins/lyric_viewer.c:32: error: previous declaration of ‘rb’ was here
/home/nicholas/Projects/rockbox/apps/plugins/lyric_viewer.c:39: warning: unused parameter ‘buf_len’
/home/nicholas/Projects/rockbox/apps/plugins/lyric_viewer.c:192: error: conflicting types for ‘plugin_start’
/home/nicholas/Projects/rockbox/apps/plugin.h:902: error: previous declaration of ‘plugin_start’ was here
/home/nicholas/Projects/rockbox/apps/plugins/lyric_viewer.c: In function ‘plugin_start’:
/home/nicholas/Projects/rockbox/apps/plugins/lyric_viewer.c:215: error: too many arguments to function ‘rb->splash’
make: *** [/home/nicholas/Projects/rockbox/ipod/apps/plugins/lyric_viewer.o] Error 1

Loading...