diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2023-08-17 13:40:09 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2023-08-17 13:40:09 +0200 |
commit | 03d326fc90afa4fded017776996b84d6a4686162 (patch) | |
tree | 64d26a38dc2c8f96d984fd5158d0cfbf8391148d /apps | |
parent | e5ecff3db776447417f501630c0af4f285277735 (diff) | |
download | rockbox-03d326fc90afa4fded017776996b84d6a4686162.tar.gz rockbox-03d326fc90afa4fded017776996b84d6a4686162.zip |
Remove obsolete alias for audio_record function
Rockbox doesn't support HW codec anymore
Change-Id: Ia20d3f02f0d9db88b23cf9074e4d76aa21fd53b0
Diffstat (limited to 'apps')
-rw-r--r-- | apps/recorder/pcm_record.c | 4 | ||||
-rw-r--r-- | apps/recorder/recording.c | 9 |
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 */ | ||
983 | void audio_new_file(const char *filename) | ||
984 | __attribute__((alias("audio_record"))); | ||
985 | |||
986 | /* Stop current recording if recording */ | 982 | /* Stop current recording if recording */ |
987 | void audio_stop_recording(void) | 983 | void 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); |