summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-11-24 19:49:04 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-11-24 19:49:04 +0000
commit0729b928ce14eafc09efe484bf19df2346880159 (patch)
treea8561f21607bab954580fb8a6b3fafbb33e691c9 /firmware/export
parent516d277958019ba27362d5f9fcc5ee70acc87c45 (diff)
downloadrockbox-0729b928ce14eafc09efe484bf19df2346880159.zip
rockbox-0729b928ce14eafc09efe484bf19df2346880159.tar.gz
rockbox-0729b928ce14eafc09efe484bf19df2346880159.tar.bz2
rockbox-0729b928ce14eafc09efe484bf19df2346880159.tar.xz
Recording: Add AIFF recording to SWCODEC. Note: AIFF playback chokes on sample rates other than 44.1kHz whether recorded or created and saved with an external program. Recorded files will still open in an external editor however.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11583 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/enc_base.h8
-rw-r--r--firmware/export/id3.h3
2 files changed, 10 insertions, 1 deletions
diff --git a/firmware/export/enc_base.h b/firmware/export/enc_base.h
index 85101ac..1be796e 100644
--- a/firmware/export/enc_base.h
+++ b/firmware/export/enc_base.h
@@ -24,6 +24,14 @@
/** encoder config structures **/
+/** aiff_enc.codec **/
+struct aiff_enc_config
+{
+#if 0
+ unsigned long sample_depth;
+#endif
+};
+
/** mp3_enc.codec **/
#define MP3_BITR_CAP_8 (1 << 0)
#define MP3_BITR_CAP_16 (1 << 1)
diff --git a/firmware/export/id3.h b/firmware/export/id3.h
index 3d24e20..b099aed 100644
--- a/firmware/export/id3.h
+++ b/firmware/export/id3.h
@@ -78,6 +78,7 @@ enum rec_format_indexes
/* start formats */
REC_FORMAT_PCM_WAV,
+ REC_FORMAT_AIFF,
REC_FORMAT_WAVPACK,
REC_FORMAT_MPA_L3,
@@ -93,7 +94,7 @@ enum rec_format_indexes
REC_FORMAT_CFG_NUM_BITS = 2
};
-#define REC_FORMAT_CFG_VAL_LIST "wave,wvpk,mpa3"
+#define REC_FORMAT_CFG_VAL_LIST "aiff,wave,wvpk,mpa3"
/* get REC_FORMAT_* corresponding AFMT_* */
extern const int rec_format_afmt[REC_NUM_FORMATS];