Commit 132fb5c0 authored by Elliott Sales de Andrade's avatar Elliott Sales de Andrade Committed by Wim Taymans
Browse files

riff: add siren to the RIFF parser

Add siren7 caps to the RIFF parser.
parent f6360ee1
......@@ -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)
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment