summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/recording.h')
-rw-r--r--apps/recorder/recording.h15
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 */
43void rec_set_recording_options(struct audio_recording_options *options); 43void rec_set_recording_options(struct audio_recording_options *options);
44 44
45/* steals mp3 buffer, creates unique filename and starts recording */ 45enum recording_command
46void 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 */
49void rec_new_file(void); 56void rec_command(enum recording_command rec_cmd);
50 57
51#endif /* RECORDING_H */ 58#endif /* RECORDING_H */