summaryrefslogtreecommitdiff
path: root/apps/codecs/aiff.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/aiff.c')
-rw-r--r--apps/codecs/aiff.c6
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
39static const struct pcm_entry pcm_codecs[] = { 41static 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
47static int32_t samples[PCM_CHUNK_SIZE] IBSS_ATTR; 51static int32_t samples[PCM_CHUNK_SIZE] IBSS_ATTR;
48 52