From: Elliott Sales de Andrade Date: Mon, 13 Jul 2009 16:21:49 +0000 (+0200) Subject: riff: add siren to the RIFF parser X-Git-Tag: 1.19.3~511^2~9434 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=132fb5c050039c6778e5d80e3f0df3a3f539c515;p=platform%2Fupstream%2Fgstreamer.git riff: add siren to the RIFF parser Add siren7 caps to the RIFF parser. --- diff --git a/gst-libs/gst/riff/riff-ids.h b/gst-libs/gst/riff/riff-ids.h index 81b7626..b9526d6 100644 --- a/gst-libs/gst/riff/riff-ids.h +++ b/gst-libs/gst/riff/riff-ids.h @@ -407,6 +407,7 @@ typedef struct _gst_riff_strf_auds { /* == WaveHeader (?) */ #define GST_RIFF_WAVE_FORMAT_IPI_RPELP (0x0251) #define GST_RIFF_WAVE_FORMAT_CS2 (0x0260) #define GST_RIFF_WAVE_FORMAT_SONY_ATRAC3 (0x0270) +#define GST_RIFF_WAVE_FORMAT_SIREN (0x028E) #define GST_RIFF_WAVE_FORMAT_FM_TOWNS_SND (0x0300) #define GST_RIFF_WAVE_FORMAT_BTV_DIGITAL (0x0400) #define GST_RIFF_WAVE_FORMAT_IMC (0x0401) diff --git a/gst-libs/gst/riff/riff-media.c b/gst-libs/gst/riff/riff-media.c index bb6032a..120debf 100644 --- a/gst-libs/gst/riff/riff-media.c +++ b/gst-libs/gst/riff/riff-media.c @@ -1328,6 +1328,13 @@ gst_riff_create_audio_caps (guint16 codec_id, *codec_name = g_strdup ("Sony ATRAC3"); break; + case GST_RIFF_WAVE_FORMAT_SIREN: + caps = gst_caps_new_simple ("audio/x-siren", NULL); + if (codec_name) + *codec_name = g_strdup ("Siren7"); + rate_chan = FALSE; + break; + case GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK4: rate_min = 8000; rate_max = 96000; @@ -1763,6 +1770,7 @@ gst_riff_create_audio_template_caps (void) GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV, GST_RIFF_WAVE_FORMAT_AMR_NB, GST_RIFF_WAVE_FORMAT_AMR_WB, + GST_RIFF_WAVE_FORMAT_SIREN, /* FILL ME */ }; guint i;