summaryrefslogtreecommitdiff
path: root/apps/recorder/recording.c
diff options
context:
space:
mode:
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)
691#endif 691#endif
692} 692}
693 693
694#if CONFIG_CODEC == SWCODEC && !defined (SIMULATOR) 694#if CONFIG_CODEC == SWCODEC
695void rec_set_source(int source, unsigned flags) 695void rec_set_source(int source, unsigned flags)
696{ 696{
697 /* Set audio input source, power up/down devices */ 697 /* Set audio input source, power up/down devices */
@@ -701,7 +701,7 @@ void rec_set_source(int source, unsigned flags)
701 peak_meter_playback((flags & SRCF_RECORDING) == 0); 701 peak_meter_playback((flags & SRCF_RECORDING) == 0);
702 peak_meter_enable(true); 702 peak_meter_enable(true);
703} 703}
704#endif /* CONFIG_CODEC == SWCODEC && !defined (SIMULATOR) */ 704#endif /* CONFIG_CODEC == SWCODEC */
705 705
706void rec_set_recording_options(struct audio_recording_options *options) 706void rec_set_recording_options(struct audio_recording_options *options)
707{ 707{
@@ -2321,79 +2321,6 @@ void audio_beep(int duration)
2321 /* dummy */ 2321 /* dummy */
2322 (void)duration; 2322 (void)duration;
2323} 2323}
2324
2325#ifdef SIMULATOR
2326/* stubs for recording sim */
2327void audio_init_recording(unsigned int buffer_offset)
2328{
2329 buffer_offset = buffer_offset;
2330}
2331
2332void audio_close_recording(void)
2333{
2334}
2335
2336unsigned long pcm_rec_get_warnings(void)
2337{
2338 return 0;
2339}
2340
2341unsigned long pcm_rec_sample_rate(void)
2342{
2343 return 0;
2344}
2345
2346unsigned long audio_recorded_time(void)
2347{
2348 return 123;
2349}
2350
2351unsigned long audio_num_recorded_bytes(void)
2352{
2353 return 5 * 1024 * 1024;
2354}
2355
2356void rec_set_source(int source, unsigned flags)
2357{
2358 source = source;
2359 flags = flags;
2360}
2361
2362void audio_set_recording_options(struct audio_recording_options *options)
2363{
2364 options = options;
2365}
2366
2367void audio_set_recording_gain(int left, int right, int type)
2368{
2369 left = left;
2370 right = right;
2371 type = type;
2372}
2373
2374void audio_record(const char *filename)
2375{
2376 filename = filename;
2377}
2378
2379void audio_new_file(const char *filename)
2380{
2381 filename = filename;
2382}
2383
2384void audio_stop_recording(void)
2385{
2386}
2387
2388void audio_pause_recording(void)
2389{
2390}
2391
2392void audio_resume_recording(void)
2393{
2394}
2395
2396#endif /* #ifdef SIMULATOR */
2397#endif /* #ifdef CONFIG_CODEC == SWCODEC */ 2324#endif /* #ifdef CONFIG_CODEC == SWCODEC */
2398 2325
2399#endif /* HAVE_RECORDING */ 2326#endif /* HAVE_RECORDING */