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/wav.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/codecs/wav.c') diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c index 774cfaf8ef..25a82cbcfe 100644 --- a/apps/codecs/wav.c +++ b/apps/codecs/wav.c @@ -45,6 +45,7 @@ enum { WAVE_FORMAT_UNKNOWN = 0x0000, /* Microsoft Unknown Wave Format */ WAVE_FORMAT_PCM = 0x0001, /* Microsoft PCM Format */ + WAVE_FORMAT_IEEE_FLOAT = 0x0003, /* IEEE Float */ WAVE_FORMAT_ALAW = 0x0006, /* Microsoft ALAW */ WAVE_FORMAT_MULAW = 0x0007, /* Microsoft MULAW */ WAVE_FORMAT_DVI_ADPCM = 0x0011, /* Intel's DVI ADPCM */ @@ -56,6 +57,7 @@ enum const struct pcm_entry wave_codecs[] = { { WAVE_FORMAT_UNKNOWN, 0 }, { WAVE_FORMAT_PCM, get_linear_pcm_codec }, + { WAVE_FORMAT_IEEE_FLOAT, get_ieee_float_codec }, { WAVE_FORMAT_ALAW, get_itut_g711_alaw_codec }, { WAVE_FORMAT_MULAW, get_itut_g711_mulaw_codec }, { WAVE_FORMAT_DVI_ADPCM, get_dvi_adpcm_codec }, @@ -63,7 +65,7 @@ const struct pcm_entry wave_codecs[] = { { IBM_FORMAT_ALAW, get_itut_g711_alaw_codec }, }; -#define NUM_FORMATS 7 +#define NUM_FORMATS 8 static const struct pcm_codec *get_wave_codec(uint32_t formattag) { -- cgit v1.2.3