summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-07-04 13:37:52 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-07-04 13:37:52 +0000
commit3982f1e9322184de6bb15bbe8d04476d8bc11601 (patch)
treeb15642a5c1d6d1e3c8ed6b159ed7918f515e3d9e /apps/recorder/recording.c
parentbf83ac624083af0c53fdc358df8270798831d8cb (diff)
Simulator: build recording code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27280 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r--apps/recorder/recording.c77
1 files changed, 2 insertions, 75 deletions
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 */