From e04e2938e79c40a8455f2c713d339ed0d41ad6ef Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Wed, 27 Jan 2010 18:10:08 +0000 Subject: 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 --- apps/codecs/aiff.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/codecs/aiff.c') 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 { AIFC_FORMAT_PCM = FOURCC('N', 'O', 'N', 'E'), /* AIFC PCM Format (big endian) */ AIFC_FORMAT_ALAW = FOURCC('a', 'l', 'a', 'w'), /* AIFC ALaw compressed */ AIFC_FORMAT_MULAW = FOURCC('u', 'l', 'a', 'w'), /* AIFC uLaw compressed */ + AIFC_FORMAT_IEEE_FLOAT32 = FOURCC('f', 'l', '3', '2'), /* AIFC IEEE float 32 bit */ + AIFC_FORMAT_IEEE_FLOAT64 = FOURCC('f', 'l', '6', '4'), /* AIFC IEEE float 64 bit */ }; static const struct pcm_entry pcm_codecs[] = { { AIFC_FORMAT_PCM, get_linear_pcm_codec }, { AIFC_FORMAT_ALAW, get_itut_g711_alaw_codec }, { AIFC_FORMAT_MULAW, get_itut_g711_mulaw_codec }, + { AIFC_FORMAT_IEEE_FLOAT32, get_ieee_float_codec }, + { AIFC_FORMAT_IEEE_FLOAT64, get_ieee_float_codec }, }; -#define NUM_FORMATS 3 +#define NUM_FORMATS 5 static int32_t samples[PCM_CHUNK_SIZE] IBSS_ATTR; -- cgit v1.2.3