summaryrefslogtreecommitdiff
path: root/firmware/export
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 /firmware/export
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 'firmware/export')
-rw-r--r--firmware/export/audio.h13
-rw-r--r--firmware/export/pcm_record.h4
2 files changed, 13 insertions, 4 deletions
diff --git a/firmware/export/audio.h b/firmware/export/audio.h
index 4875d62..3edbfe1 100644
--- a/firmware/export/audio.h
+++ b/firmware/export/audio.h
@@ -150,6 +150,17 @@ enum audio_sources
AUDIO_SRC_MAX = AUDIO_NUM_SOURCES-1
};
+#if CONFIG_CODEC == SWCODEC
+/* selects an audio source for recording or playback */
+#define SRCF_PLAYBACK 0x0000 /* default */
+#define SRCF_RECORDING 0x1000
+#ifdef CONFIG_TUNER
+/* for AUDIO_SRC_FMRADIO */
+#define SRCF_FMRADIO_PLAYING 0x0000 /* default */
+#define SRCF_FMRADIO_PAUSED 0x2000
+#endif
+#endif
+
#ifdef HAVE_RECORDING
/* parameters for audio_set_recording_options */
struct audio_recording_options
@@ -186,6 +197,8 @@ unsigned long audio_num_recorded_bytes(void);
bool audio_load_encoder(int afmt);
void audio_remove_encoder(void);
unsigned char *audio_get_recording_buffer(size_t *buffer_size);
+void audio_set_source(int source, unsigned flags);
+void audio_set_output_source(int source);
#endif /* CONFIG_CODEC == SWCODEC */
#endif /* HAVE_RECORDING */
diff --git a/firmware/export/pcm_record.h b/firmware/export/pcm_record.h
index 639ad7c..84db806 100644
--- a/firmware/export/pcm_record.h
+++ b/firmware/export/pcm_record.h
@@ -24,9 +24,6 @@
#ifdef HAVE_SPDIF_IN
#define DMA_REC_ERROR_SPDIF ((size_t)-2)
#endif
-/* Use AUDIO_SRC_* enumeration values */
-void pcm_set_monitor(int monitor);
-void pcm_set_rec_source(int source);
/**
* RAW pcm data recording
@@ -55,7 +52,6 @@ void pcm_calculate_rec_peaks(int *left, int *right);
results for consistency with the hardware codec version */
/* unsigned long pcm_rec_status(void); */
void pcm_rec_init(void);
-void pcm_rec_mux(int source);
int pcm_rec_current_bitrate(void);
int pcm_rec_encoder_afmt(void); /* AFMT_* value, AFMT_UNKNOWN if none */
int pcm_rec_rec_format(void); /* Format index or -1 otherwise */