diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-01-21 14:58:40 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-01-21 14:58:40 +0000 |
commit | ef7293f0bc336beb30f3a5f2eafad4a447f60ac5 (patch) | |
tree | 68b02b0278b25a10a261d8813bbf5be39e1a51b6 /apps/recorder/radio.c | |
parent | 33acdef9db5ffa2c6f93dc07d0400c7a72a0f25e (diff) | |
download | rockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.tar.gz rockbox-ef7293f0bc336beb30f3a5f2eafad4a447f60ac5.zip |
New feature: NOw you can store the recorded files in either /recordings (the directory will be created automatically) or in the current directory.
New feature: A "Create directory" menu option (untested in the simulator).
Bug fix: The ON+Play menu could do nasty things if you pressed ON+Play in an empty dir.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4268 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r-- | apps/recorder/radio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index 0cc85335b0..65b8beb164 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -117,7 +117,7 @@ static int find_preset(int freq) | |||
117 | 117 | ||
118 | bool radio_screen(void) | 118 | bool radio_screen(void) |
119 | { | 119 | { |
120 | char buf[128]; | 120 | char buf[MAX_PATH]; |
121 | bool done = false; | 121 | bool done = false; |
122 | int button; | 122 | int button; |
123 | int val; | 123 | int val; |
@@ -248,13 +248,13 @@ bool radio_screen(void) | |||
248 | case BUTTON_F3: | 248 | case BUTTON_F3: |
249 | if(mpeg_status() == MPEG_STATUS_RECORD) | 249 | if(mpeg_status() == MPEG_STATUS_RECORD) |
250 | { | 250 | { |
251 | mpeg_new_file(rec_create_filename()); | 251 | mpeg_new_file(rec_create_filename(buf)); |
252 | update_screen = true; | 252 | update_screen = true; |
253 | } | 253 | } |
254 | else | 254 | else |
255 | { | 255 | { |
256 | have_recorded = true; | 256 | have_recorded = true; |
257 | mpeg_record(rec_create_filename()); | 257 | mpeg_record(rec_create_filename(buf)); |
258 | status_set_playmode(STATUS_RECORD); | 258 | status_set_playmode(STATUS_RECORD); |
259 | update_screen = true; | 259 | update_screen = true; |
260 | } | 260 | } |