summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-11-23 19:21:15 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-11-23 19:21:15 +0000
commitab1861a3c2c06cf3edff7c42348d117f21235e48 (patch)
treee41eddf45f5348a2d954ac97984fbf7a7c61bd6c /apps/plugin.c
parent069c54d5d87378ccd73d84be2606ec2ab654bc21 (diff)
downloadrockbox-ab1861a3c2c06cf3edff7c42348d117f21235e48.zip
rockbox-ab1861a3c2c06cf3edff7c42348d117f21235e48.tar.gz
rockbox-ab1861a3c2c06cf3edff7c42348d117f21235e48.tar.bz2
rockbox-ab1861a3c2c06cf3edff7c42348d117f21235e48.tar.xz
iRiver/iAudio: Added audio_set_recording gain and sound_default to plugin API. Simplified plugin recording by target/-ing some audio functions. UDA1380 records with WSPLL as a result.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11577 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index f5e6ceb..21930ee 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -456,22 +456,25 @@ static const struct plugin_api rockbox_api = {
#ifdef HAVE_RECORDING
&rec_freq_sampr[0],
#ifndef SIMULATOR
- pcm_set_monitor,
- pcm_set_rec_source,
pcm_init_recording,
pcm_close_recording,
pcm_record_data,
pcm_stop_recording,
pcm_calculate_rec_peaks,
+ audio_set_recording_gain,
+ audio_set_output_source,
rec_set_source,
#endif
#endif /* HAVE_RECORDING */
#endif /* CONFIG_CODEC == SWCODEC */
-
#ifdef IRAM_STEAL
plugin_iram_init,
#endif
+
+#if CONFIG_CODEC == SWCODEC && defined(HAVE_RECORDING) && !defined(SIMULATOR)
+ sound_default,
+#endif
};
int plugin_load(const char* plugin, void* parameter)