summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-05-04 15:14:56 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-05-04 15:14:56 +0000
commit2aaf45e643053b9a3515e4320b82b16fb32be02a (patch)
tree3f29921a8e0ef2a752e2104ef96d9862c53017e2 /apps/recorder
parent621cf0788fd69c967688692b7f19c02b6df7a322 (diff)
downloadrockbox-2aaf45e643053b9a3515e4320b82b16fb32be02a.tar.gz
rockbox-2aaf45e643053b9a3515e4320b82b16fb32be02a.zip
Get samplerate switching working in the sim to be similar to on target. Make all pcm functions available there as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13320 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/recording.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index 025480cf91..d0e79bcdd7 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -2100,6 +2100,12 @@ void audio_set_recording_gain(int left, int right, int type)
2100 type = type; 2100 type = type;
2101} 2101}
2102 2102
2103void audio_set_output_source(int source)
2104{
2105 source = source;
2106}
2107
2108
2103void audio_record(const char *filename) 2109void audio_record(const char *filename)
2104{ 2110{
2105 filename = filename; 2111 filename = filename;
@@ -2117,19 +2123,6 @@ void audio_resume_recording(void)
2117{ 2123{
2118} 2124}
2119 2125
2120void pcm_calculate_rec_peaks(int *left, int *right)
2121{
2122 if (left)
2123 *left = 0;
2124 if (right)
2125 *right = 0;
2126}
2127
2128unsigned long pcm_rec_status(void)
2129{
2130 return 0;
2131}
2132
2133#endif /* #ifdef SIMULATOR */ 2126#endif /* #ifdef SIMULATOR */
2134#endif /* #ifdef CONFIG_CODEC == SWCODEC */ 2127#endif /* #ifdef CONFIG_CODEC == SWCODEC */
2135 2128