diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-25 15:53:54 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-08-25 15:53:54 +0000 |
commit | 583f186ce488ed52eb0c663a8263f4052e19063d (patch) | |
tree | d5f11cf489202737c93dafd52f9f65fb09f6a2b8 /apps/recorder/recording.h | |
parent | cdfb22f9dfdbae2fdc6902f895fd89060abaa38b (diff) | |
download | rockbox-583f186ce488ed52eb0c663a8263f4052e19063d.tar.gz rockbox-583f186ce488ed52eb0c663a8263f4052e19063d.zip |
Implement FS #2976: Clip Counter for recording screen. If enabled in peak meter settings, it shows the number of times clipping occurred (clip indicator going on). Count is reset on recording start and only counts during actual recording. Stays on screen when stopping or pauzing. Also fix a drawing bug when peakmeters start at a non-zero x offset.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14455 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.h')
-rw-r--r-- | apps/recorder/recording.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/apps/recorder/recording.h b/apps/recorder/recording.h index 2c3869a4fb..a622f01d40 100644 --- a/apps/recorder/recording.h +++ b/apps/recorder/recording.h | |||
@@ -42,10 +42,17 @@ void rec_init_recording_options(struct audio_recording_options *options); | |||
42 | /* SRCF_RECORDING is implied for SWCODEC */ | 42 | /* SRCF_RECORDING is implied for SWCODEC */ |
43 | void rec_set_recording_options(struct audio_recording_options *options); | 43 | void rec_set_recording_options(struct audio_recording_options *options); |
44 | 44 | ||
45 | /* steals mp3 buffer, creates unique filename and starts recording */ | 45 | enum recording_command |
46 | void rec_record(void); | 46 | { |
47 | RECORDING_CMD_STOP, | ||
48 | RECORDING_CMD_START, /* steal mp3 buffer, create unique filename and | ||
49 | start recording */ | ||
50 | RECORDING_CMD_START_NEWFILE, /* create unique filename and start recording*/ | ||
51 | RECORDING_CMD_PAUSE, | ||
52 | RECORDING_CMD_RESUME | ||
53 | }; | ||
47 | 54 | ||
48 | /* creates unique filename and starts recording */ | 55 | /* centralized way to start/stop/... recording */ |
49 | void rec_new_file(void); | 56 | void rec_command(enum recording_command rec_cmd); |
50 | 57 | ||
51 | #endif /* RECORDING_H */ | 58 | #endif /* RECORDING_H */ |