diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-06-08 23:42:04 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-06-08 23:42:04 +0000 |
commit | 2d48d0ffa6baddd19e6ff077f25068f90af7be3d (patch) | |
tree | 68c80646a748496fee423d77aa43afafb783b269 /apps/plugins/test_sampr.c | |
parent | a85793fc54a0079f5483d5a5c6c60b7d17ca688c (diff) | |
download | rockbox-2d48d0ffa6baddd19e6ff077f25068f90af7be3d.tar.gz rockbox-2d48d0ffa6baddd19e6ff077f25068f90af7be3d.zip |
Straighten out some audio path APIs and misc. audio stuff. Having recording is not a prerequisite to having input/output source selection which is probably most useful when adding a audio input features like FM to a new port without forcing recording to be implemented first.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13599 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_sampr.c')
-rw-r--r-- | apps/plugins/test_sampr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/test_sampr.c b/apps/plugins/test_sampr.c index 253c592eaa..e1511e3dfd 100644 --- a/apps/plugins/test_sampr.c +++ b/apps/plugins/test_sampr.c | |||
@@ -199,9 +199,9 @@ void play_waveform(void) | |||
199 | rb->audio_stop(); | 199 | rb->audio_stop(); |
200 | rb->sound_set(SOUND_VOLUME, rb->sound_default(SOUND_VOLUME)); | 200 | rb->sound_set(SOUND_VOLUME, rb->sound_default(SOUND_VOLUME)); |
201 | 201 | ||
202 | #ifdef HAVE_RECORDING | 202 | #ifdef INPUT_SRC_CAPS != 0 |
203 | /* Select playback */ | 203 | /* Select playback */ |
204 | rb->rec_set_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK); | 204 | rb->audio_set_input_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK); |
205 | #endif | 205 | #endif |
206 | 206 | ||
207 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 207 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
@@ -210,7 +210,7 @@ void play_waveform(void) | |||
210 | 210 | ||
211 | rb->pcm_set_frequency(rb->hw_freq_sampr[freq]); | 211 | rb->pcm_set_frequency(rb->hw_freq_sampr[freq]); |
212 | 212 | ||
213 | #ifdef HAVE_RECORDING | 213 | #ifdef INPUT_SRC_CAPS != 0 |
214 | /* Recordable targets can play back from other sources */ | 214 | /* Recordable targets can play back from other sources */ |
215 | rb->audio_set_output_source(AUDIO_SRC_PLAYBACK); | 215 | rb->audio_set_output_source(AUDIO_SRC_PLAYBACK); |
216 | #endif | 216 | #endif |