Rockbox

Tasklist

FS#1912 - Use current dir for recording files

Attached to Project: Rockbox
Opened by Craig Sather (rb_dev) - Friday, 09 January 2004, 04:08 GMT
Last edited by Linus Nielsen Feltzing (linusnielsen) - Wednesday, 04 February 2004, 11:26 GMT
Task Type Patches
Category
Status Closed
Assigned To No-one
Operating System
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

This patch make the recorder leave recorded files in
the current directory instead of the root dir. To
choose the directory that will contain the recorded
file, simply broswe to the desired directory before
entering the recording mode.
This task depends upon

Closed by  Linus Nielsen Feltzing (linusnielsen)
Wednesday, 04 February 2004, 11:26 GMT
Reason for closing:  Accepted
Comment by Björn Stenberg (zagor) - Friday, 09 January 2004, 08:21 GMT

I like it. Very simple and straight-forward. Thanks!
Comment by Dave Jones (dmilamj) - Friday, 09 January 2004, 16:46 GMT

Just a C programming question from someone who is not much
of a programmer.

Why do we pass (char *buffer) to
rec_create_filename_w_path? It seems to me that the buffer
variable is defined each time rec_create_filename_w_path is
called using the getcwd function. Is there any need to pass
buffer back and forth to recording_screen?

Dave
Comment by Craig Sather (rb_dev) - Friday, 09 January 2004, 21:55 GMT

I changed it to pass the buffer in order to put the path
buffer on the stack instead of eating up static memory space
by declaring it in rec_create_filename_w_path().
Comment by Linus Nielsen Feltzing (linusnielsen) - Wednesday, 04 February 2004, 11:26 GMT

Thanks Craig!

I used your patch as a base for the new recording directory
feature.

Loading...