mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
Remove obsolete alias for audio_record function
Rockbox doesn't support HW codec anymore Change-Id: Ia20d3f02f0d9db88b23cf9074e4d76aa21fd53b0
This commit is contained in:
parent
e5ecff3db7
commit
03d326fc90
3 changed files with 2 additions and 12 deletions
|
@ -979,10 +979,6 @@ void audio_record(const char *filename)
|
|||
audio_queue_send(Q_AUDIO_RECORD, (intptr_t)filename);
|
||||
}
|
||||
|
||||
/* audio_record alias for API compatibility with HW codec */
|
||||
void audio_new_file(const char *filename)
|
||||
__attribute__((alias("audio_record")));
|
||||
|
||||
/* Stop current recording if recording */
|
||||
void audio_stop_recording(void)
|
||||
{
|
||||
|
|
|
@ -643,16 +643,11 @@ void rec_command(enum recording_command cmd)
|
|||
audio_stop_recording();
|
||||
break;
|
||||
case RECORDING_CMD_START:
|
||||
/* steal mp3 buffer, create unique filename and start recording */
|
||||
pm_reset_clipcount();
|
||||
pm_activate_clipcount(true);
|
||||
audio_record(rec_create_filename(path_buffer));
|
||||
break;
|
||||
case RECORDING_CMD_START_NEWFILE:
|
||||
/* create unique filename and start recording*/
|
||||
pm_reset_clipcount();
|
||||
pm_activate_clipcount(true); /* just to be sure */
|
||||
audio_new_file(rec_create_filename(path_buffer));
|
||||
pm_activate_clipcount(true);
|
||||
audio_record(rec_create_filename(path_buffer));
|
||||
break;
|
||||
case RECORDING_CMD_PAUSE:
|
||||
pm_activate_clipcount(false);
|
||||
|
|
|
@ -154,7 +154,6 @@ void audio_record(const char *filename);
|
|||
void audio_stop_recording(void);
|
||||
void audio_pause_recording(void);
|
||||
void audio_resume_recording(void);
|
||||
void audio_new_file(const char *filename);
|
||||
void audio_set_recording_options(struct audio_recording_options *options);
|
||||
void audio_set_recording_gain(int left, int right, int type);
|
||||
unsigned long audio_recorded_time(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue