riff: add siren to the RIFF parser
authorElliott Sales de Andrade <quantum.analyst at gmail.com>
Mon, 13 Jul 2009 16:21:49 +0000 (18:21 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 13 Jul 2009 16:22:55 +0000 (18:22 +0200)
Add siren7 caps to the RIFF parser.

gst-libs/gst/riff/riff-ids.h
gst-libs/gst/riff/riff-media.c

index 81b7626..b9526d6 100644 (file)
@@ -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)
index bb6032a..120debf 100644 (file)
@@ -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;