summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/pcm_record.c4
-rw-r--r--apps/recorder/recording.c9
2 files changed, 2 insertions, 11 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c
index 8dc2c150fd..01f0e604dd 100644
--- a/apps/recorder/pcm_record.c
+++ b/apps/recorder/pcm_record.c
@@ -979,10 +979,6 @@ void audio_record(const char *filename)
979 audio_queue_send(Q_AUDIO_RECORD, (intptr_t)filename); 979 audio_queue_send(Q_AUDIO_RECORD, (intptr_t)filename);
980} 980}
981 981
982/* audio_record alias for API compatibility with HW codec */
983void audio_new_file(const char *filename)
984 __attribute__((alias("audio_record")));
985
986/* Stop current recording if recording */ 982/* Stop current recording if recording */
987void audio_stop_recording(void) 983void audio_stop_recording(void)
988{ 984{
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 6c52adf5d3..dec7b7bd8c 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -643,16 +643,11 @@ void rec_command(enum recording_command cmd)
643 audio_stop_recording(); 643 audio_stop_recording();
644 break; 644 break;
645 case RECORDING_CMD_START: 645 case RECORDING_CMD_START:
646 /* steal mp3 buffer, create unique filename and start recording */
647 pm_reset_clipcount();
648 pm_activate_clipcount(true);
649 audio_record(rec_create_filename(path_buffer));
650 break;
651 case RECORDING_CMD_START_NEWFILE: 646 case RECORDING_CMD_START_NEWFILE:
652 /* create unique filename and start recording*/ 647 /* create unique filename and start recording*/
653 pm_reset_clipcount(); 648 pm_reset_clipcount();
654 pm_activate_clipcount(true); /* just to be sure */ 649 pm_activate_clipcount(true);
655 audio_new_file(rec_create_filename(path_buffer)); 650 audio_record(rec_create_filename(path_buffer));
656 break; 651 break;
657 case RECORDING_CMD_PAUSE: 652 case RECORDING_CMD_PAUSE:
658 pm_activate_clipcount(false); 653 pm_activate_clipcount(false);