Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Recording

Re: Recording

From: Ronald Teune <rtwolf_at_gmx.net>
Date: Wed, 07 Sep 2005 01:05:24 +0200

Just thinking... won't making a program for this be quite simple?
My c knowledge is somewhat limited, but I think about twenty lines of code
would be enough:

int main () {
   char *filestring = malloc(256*1024) /* allocate 256 kbytes */
   char *pointer = filestring;
   int length_of_filestring;
   fd=open("rombox.ucl", O_RD|O_BINARY, 0644);
   read(fd, filestring, length_of_filestring)
   /* some function to read the file into a string
      (I can look for this, but I'm kinda lazy) */
   while (strncmp(pointer,"recordings", 10) != 0)
     pointer++;
   *pointer = "!recrdings"; /* this isn't null terminated, I hope? */
   close(fd);
   fd=open("rombox_rec.ucl", O_WR|O_BINARY, 0644);
   write(fd,filestring,length_of_filestring);
   close(fd);
   free(filestring);
return 0;
}

It's untested, non-working code (I don't know how to determine file size)
and it's probably not the most efficient way too. But the concept will
probably be able to work.

Ronald

On Tue, 06 Sep 2005 12:26:57 +0200, <joerch.net_at_web.de> wrote:

>
> Eric, if you not want to build rockbox yourself, you can descramble
> ajbrec.ajz, find the 2 strings /recordings and change that to
> /!recording with an hex-editor and scramble it again. If you use
> rombox.ucl it's easier. Just make the changes in that file and "run" it
> in rockbox.
>
> I can do this for you.
>
> The problem with the setting "save recordings to current folder" is that
> you do not know everytime what folder that is...
>
> Joerch
> _________________________________________________________________________
> Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle
> Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179
>
>
>
>
> _______________________________________________
> http://cool.haxx.se/mailman/listinfo/rockbox
>



-- 
http://www.georgedillon.com/web/html_email_is_evil.shtml
                        _
ASCII ribbon campaign ( )
  - against HTML email  X
    & .doc attachments / \
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2005-09-07

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy