Rockbox Ports are now being developed for various digital audio players!
struct mp3entry *id3 = audio_current_track();fd = rb->open("./path.txt", O_RDWR|O_CREAT);rb->fdprintf(fd, id3->path);rb->close(fd);audio_stop();
char* buf;char *buf2;struct mp3entry *id3fd = rb->open("./path.txt", O_RDONLY);rb->read_line(fd, buf, 150);buf2 = buf;rb->mp3info(*id3, buf2);
The read_line function takes char* buf though and the rb->mp3info function takes char *filename. Is there any way to do this?
struct mp3entry *id3rb->mp3info(*id3, buf2);
struct mp3entry id3;rb->mp3info(&id3, buf2);
struct mp3entry *id3 = audio_current_track();
struct mp3entry *id3; //although yours was missing the ';' :D
rb->mp3info(id3,buf2); // i.e. without the '*' on the front of id3
int goto_track(void){ int fd; char* current_track[MAX_PATH]; struct mp3entry id3; fd = rb->open(TEMP_PATH, O_RDONLY); rb->read_line(fd, current_track, MAX_PATH); rb->close(fd); fd = rb->open(current_track, O_RDONLY);#if (CONFIG_CODEC == SWCODEC) if (fd >= 0 && rb->get_metadata(&id3, fd, current_track))#else if (!rb->mp3info(&id3, current_track));#endif rb->close(fd);}
CC tesplugin.ctestplugin.c: In function 'goto_track':testplugin.c:375: warning: passing argument 2 of 'rb->read_line' from incompatible pointer typetestplugin.c:377: warning: passing argument 1 of 'rb->open' from incompatible pointer typetestplugin.c:379: warning: passing argument 3 of 'rb->get_metadata' from incompatible pointer typetestplugin.c:385: warning: control reaches end of non-void functionLD testplugin.elfOBJCOPY testplugin.rockMAKE in shortcutsmake[3]: Nothing to be done for `all
Page created in 0.098 seconds with 22 queries.