diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-11-24 19:49:04 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-11-24 19:49:04 +0000 |
commit | 0729b928ce14eafc09efe484bf19df2346880159 (patch) | |
tree | a8561f21607bab954580fb8a6b3fafbb33e691c9 /firmware/id3.c | |
parent | 516d277958019ba27362d5f9fcc5ee70acc87c45 (diff) |
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/id3.c')
-rw-r--r-- | firmware/id3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/id3.c b/firmware/id3.c index 90b5b3bdee..74cea7f037 100644 --- a/firmware/id3.c +++ b/firmware/id3.c @@ -64,7 +64,7 @@ const struct afmt_entry audio_formats[AFMT_NUM_CODECS] = #if CONFIG_CODEC == SWCODEC /* Audio Interchange File Format */ [AFMT_AIFF] = - AFMT_ENTRY("AIFF", "aiff", NULL, "aiff\0aif\0"), + AFMT_ENTRY("AIFF", "aiff", "aiff_enc", "aiff\0aif\0"), /* Uncompressed PCM in a WAV file */ [AFMT_PCM_WAV] = AFMT_ENTRY("WAV", "wav", "wav_enc", "wav\0" ), @@ -108,6 +108,7 @@ const int rec_format_afmt[REC_NUM_FORMATS] = /* give AFMT_UNKNOWN by default */ [0 ... REC_NUM_FORMATS-1] = AFMT_UNKNOWN, /* add new entries below this line */ + [REC_FORMAT_AIFF] = AFMT_AIFF, [REC_FORMAT_MPA_L3] = AFMT_MPA_L3, [REC_FORMAT_WAVPACK] = AFMT_WAVPACK, [REC_FORMAT_PCM_WAV] = AFMT_PCM_WAV, @@ -119,6 +120,7 @@ const int afmt_rec_format[AFMT_NUM_CODECS] = /* give -1 by default */ [0 ... AFMT_NUM_CODECS-1] = -1, /* add new entries below this line */ + [AFMT_AIFF] = REC_FORMAT_AIFF, [AFMT_MPA_L3] = REC_FORMAT_MPA_L3, [AFMT_WAVPACK] = REC_FORMAT_WAVPACK, [AFMT_PCM_WAV] = REC_FORMAT_PCM_WAV, |