summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-09-14 10:55:45 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-09-14 10:55:45 +0000
commite3e67eeb940fe5d7341e08c5fc9648ccb96fd347 (patch)
treeca6a2c2229271a5d1b5c47c734b01562a0f2dd78 /apps
parente244f7f2a66891fa630b9cfb4453d97f2bd4e7d5 (diff)
downloadrockbox-e3e67eeb940fe5d7341e08c5fc9648ccb96fd347.tar.gz
rockbox-e3e67eeb940fe5d7341e08c5fc9648ccb96fd347.zip
Proper file numbering in the iriver PCM recording test code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7519 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/pcm_recording.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/pcm_recording.c b/apps/pcm_recording.c
index af99be117c..21ca68f4e0 100644
--- a/apps/pcm_recording.c
+++ b/apps/pcm_recording.c
@@ -158,9 +158,9 @@ bool pcm_rec_screen(void)
} else
{
- snprintf(filename, MAX_PATH, "/record-%0d.wav", rec_count++);
- pcm_record(filename);
- }
+ create_numbered_filename(filename, "/", "rec_", ".wav", 4);
+ pcm_record(filename);
+ }
break;
case BUTTON_ON: