Thank You for your continued support and contributions!
- "buffer has not enough rows" -> to increase the buffer you have to modify BUFFERSIZE and MAX_ROWShow?
Can I find anywhere some documentation about this plugin? I tried to edit some lyrics but so far didn't find out how to do it.
A question.This plugin will only work with an additional file.Cuold not read lyrics from mp3 file,like original iriver firmware works with LDB manager (from iriver korean website, or mediamonkey plugin)?
And also,it could be possible in your opinion build a WPS that reads also lyrics
tomorrow i am gonna try to update the plugin in order for it to be able to play also lrc8 files. I was wondering, should i make something like:if ( exist lrc8 file) ....else if (exist snc file) ...
or should i do like a "different" version of the plugin that reads only lrc8 files???
If i choose the first option i think about using a bool to know in witch cas i am so that store_section and is_time_tag know what to doWhat do you t=hink about that???
Just realized that lrc format is more complexed than i thought. i manage to read line like[00:12.85]I want to live where soul meets bodybut the problem is that in fact in lrc format you have lines like[00:10.46][01:19.26][01:27.87][02:28.71][02:37.51][02:46.15][02:54.78][03:29.59]Nothing's Impossiblewhich means taht "Nothing's Impossible" is the lyrics for all those time tags. My problem is thaht i dont know how to put them in the right order. Does your plugin need the lyrics to be in the right order???
[02:37.01][02:44.31]Where soul meets body
while((len = rb->read_line(fd, buf, BUFFERSIZE))>0) { buffer=buf; j=0; while (((is_time_tag =timetag(buffer,&temp.time_in_ms))==true) && (nrLRC <= MAX_SECTIONS) ) { j++; buffer=&buffer[10]; } for(i=0;i<j;i++) { lrcs[nrLRC].time_in_ms=temp.time_in_ms; lrcs[nrLRC].lyrics=buffer; nrLRC++; } }
while((len = rb->read_line(fd, buf, BUFFERSIZE))>0) { buffer=buf; j=nrLRC; if ((is_time_tag = timetag(buffer,&(lrcs[nrLRC].time_in_ms))==true) ) { nrLRC++; buffer=&buffer[10]; while ((is_time_tag =timetag(buffer,&(lrcs[nrLRC].time_in_ms))==true) &&nrLRC <= MAX_SECTIONS ) { nrLRC++; buffer=&buffer[10]; } i=0; for(i=j;i<nrLRC;i++) lrcs[i].lyrics=buffer; } }
How can i not point to buf but copy the content to lrcs[].lyrics ?
while((len = rb->read_line(fd, buf, BUFFERSIZE))>0) { rb->memcpy(buffer,buf,len); j=nrLRC; if ((is_time_tag = timetag(buffer,&(lrcs[nrLRC].time_in_ms))==true) ) { nrLRC++; buffer=&buffer[10]; while ((is_time_tag =timetag(buffer,&(lrcs[nrLRC].time_in_ms))==true) &&nrLRC <= MAX_SECTIONS ) { nrLRC++; buffer=&buffer[10]; } i=0; for(i=j;i<nrLRC;i++) lrcs[i].lyrics=buffer; } }
Page created in 0.074 seconds with 16 queries.