From 3982f1e9322184de6bb15bbe8d04476d8bc11601 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 4 Jul 2010 13:37:52 +0000 Subject: Simulator: build recording code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27280 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 77 ++--------------------------------------------- 1 file changed, 2 insertions(+), 75 deletions(-) (limited to 'apps/recorder/recording.c') diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index fd1ff75e08..ab7e7c9b32 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -691,7 +691,7 @@ void rec_init_recording_options(struct audio_recording_options *options) #endif } -#if CONFIG_CODEC == SWCODEC && !defined (SIMULATOR) +#if CONFIG_CODEC == SWCODEC void rec_set_source(int source, unsigned flags) { /* Set audio input source, power up/down devices */ @@ -701,7 +701,7 @@ void rec_set_source(int source, unsigned flags) peak_meter_playback((flags & SRCF_RECORDING) == 0); peak_meter_enable(true); } -#endif /* CONFIG_CODEC == SWCODEC && !defined (SIMULATOR) */ +#endif /* CONFIG_CODEC == SWCODEC */ void rec_set_recording_options(struct audio_recording_options *options) { @@ -2321,79 +2321,6 @@ void audio_beep(int duration) /* dummy */ (void)duration; } - -#ifdef SIMULATOR -/* stubs for recording sim */ -void audio_init_recording(unsigned int buffer_offset) -{ - buffer_offset = buffer_offset; -} - -void audio_close_recording(void) -{ -} - -unsigned long pcm_rec_get_warnings(void) -{ - return 0; -} - -unsigned long pcm_rec_sample_rate(void) -{ - return 0; -} - -unsigned long audio_recorded_time(void) -{ - return 123; -} - -unsigned long audio_num_recorded_bytes(void) -{ - return 5 * 1024 * 1024; -} - -void rec_set_source(int source, unsigned flags) -{ - source = source; - flags = flags; -} - -void audio_set_recording_options(struct audio_recording_options *options) -{ - options = options; -} - -void audio_set_recording_gain(int left, int right, int type) -{ - left = left; - right = right; - type = type; -} - -void audio_record(const char *filename) -{ - filename = filename; -} - -void audio_new_file(const char *filename) -{ - filename = filename; -} - -void audio_stop_recording(void) -{ -} - -void audio_pause_recording(void) -{ -} - -void audio_resume_recording(void) -{ -} - -#endif /* #ifdef SIMULATOR */ #endif /* #ifdef CONFIG_CODEC == SWCODEC */ #endif /* HAVE_RECORDING */ -- cgit v1.2.3