summaryrefslogtreecommitdiffstats
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);
/* SRCF_RECORDING is implied for SWCODEC */
void rec_set_recording_options(struct audio_recording_options *options);
-/* steals mp3 buffer, creates unique filename and starts recording */
-void rec_record(void);
+enum recording_command
+{
+ RECORDING_CMD_STOP,
+ RECORDING_CMD_START, /* steal mp3 buffer, create unique filename and
+ start recording */
+ RECORDING_CMD_START_NEWFILE, /* create unique filename and start recording*/
+ RECORDING_CMD_PAUSE,
+ RECORDING_CMD_RESUME
+};
-/* creates unique filename and starts recording */
-void rec_new_file(void);
+/* centralized way to start/stop/... recording */
+void rec_command(enum recording_command rec_cmd);
#endif /* RECORDING_H */