diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2010-01-27 18:10:08 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2010-01-27 18:10:08 +0000 |
commit | e04e2938e79c40a8455f2c713d339ed0d41ad6ef (patch) | |
tree | 4e07c810bbf2ca8272889430a4818a2e4a644d41 /apps/codecs/aiff.c | |
parent | 4de4a3fa1c1f10fbaa544195aad98cc914563e9f (diff) | |
download | rockbox-e04e2938e79c40a8455f2c713d339ed0d41ad6ef.tar.gz rockbox-e04e2938e79c40a8455f2c713d339ed0d41ad6ef.zip |
Commit FS#10423 by Yoshihisa Uchida. Adds support for floating point PCM to libpcm.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24348 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/aiff.c')
-rw-r--r-- | apps/codecs/aiff.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/codecs/aiff.c b/apps/codecs/aiff.c index 497e0c7c3a..2e10d1e416 100644 --- a/apps/codecs/aiff.c +++ b/apps/codecs/aiff.c | |||
@@ -34,15 +34,19 @@ enum { | |||
34 | AIFC_FORMAT_PCM = FOURCC('N', 'O', 'N', 'E'), /* AIFC PCM Format (big endian) */ | 34 | AIFC_FORMAT_PCM = FOURCC('N', 'O', 'N', 'E'), /* AIFC PCM Format (big endian) */ |
35 | AIFC_FORMAT_ALAW = FOURCC('a', 'l', 'a', 'w'), /* AIFC ALaw compressed */ | 35 | AIFC_FORMAT_ALAW = FOURCC('a', 'l', 'a', 'w'), /* AIFC ALaw compressed */ |
36 | AIFC_FORMAT_MULAW = FOURCC('u', 'l', 'a', 'w'), /* AIFC uLaw compressed */ | 36 | AIFC_FORMAT_MULAW = FOURCC('u', 'l', 'a', 'w'), /* AIFC uLaw compressed */ |
37 | AIFC_FORMAT_IEEE_FLOAT32 = FOURCC('f', 'l', '3', '2'), /* AIFC IEEE float 32 bit */ | ||
38 | AIFC_FORMAT_IEEE_FLOAT64 = FOURCC('f', 'l', '6', '4'), /* AIFC IEEE float 64 bit */ | ||
37 | }; | 39 | }; |
38 | 40 | ||
39 | static const struct pcm_entry pcm_codecs[] = { | 41 | static const struct pcm_entry pcm_codecs[] = { |
40 | { AIFC_FORMAT_PCM, get_linear_pcm_codec }, | 42 | { AIFC_FORMAT_PCM, get_linear_pcm_codec }, |
41 | { AIFC_FORMAT_ALAW, get_itut_g711_alaw_codec }, | 43 | { AIFC_FORMAT_ALAW, get_itut_g711_alaw_codec }, |
42 | { AIFC_FORMAT_MULAW, get_itut_g711_mulaw_codec }, | 44 | { AIFC_FORMAT_MULAW, get_itut_g711_mulaw_codec }, |
45 | { AIFC_FORMAT_IEEE_FLOAT32, get_ieee_float_codec }, | ||
46 | { AIFC_FORMAT_IEEE_FLOAT64, get_ieee_float_codec }, | ||
43 | }; | 47 | }; |
44 | 48 | ||
45 | #define NUM_FORMATS 3 | 49 | #define NUM_FORMATS 5 |
46 | 50 | ||
47 | static int32_t samples[PCM_CHUNK_SIZE] IBSS_ATTR; | 51 | static int32_t samples[PCM_CHUNK_SIZE] IBSS_ATTR; |
48 | 52 | ||