mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
riff: Add G726 ADPCM support
https://bugzilla.gnome.org/show_bug.cgi?id=720995
This commit is contained in:
parent
c564d5b2c9
commit
3a8c1b3550
2 changed files with 11 additions and 0 deletions
|
@ -338,6 +338,7 @@ typedef struct _gst_riff_strf_auds { /* == WaveHeader (?) */
|
|||
#define GST_RIFF_WAVE_FORMAT_ITU_G721_ADPCM (0x0040)
|
||||
#define GST_RIFF_WAVE_FORMAT_G728_CELP (0x0041)
|
||||
#define GST_RIFF_WAVE_FORMAT_MSG723 (0x0042)
|
||||
#define GST_RIFF_WAVE_FORMAT_ITU_G726_ADPCM (0x0045)
|
||||
#define GST_RIFF_WAVE_FORMAT_MPEGL12 (0x0050)
|
||||
#define GST_RIFF_WAVE_FORMAT_RT24 (0x0052)
|
||||
#define GST_RIFF_WAVE_FORMAT_PAC (0x0053)
|
||||
|
|
|
@ -1391,6 +1391,16 @@ gst_riff_create_audio_caps (guint16 codec_id,
|
|||
block_align = TRUE;
|
||||
break;
|
||||
|
||||
case GST_RIFF_WAVE_FORMAT_ITU_G726_ADPCM:
|
||||
rate_min = 8000;
|
||||
rate_max = 8000;
|
||||
channels_max = 1;
|
||||
caps = gst_caps_new_simple ("audio/x-adpcm",
|
||||
"layout", G_TYPE_STRING, "g726", NULL);
|
||||
if (codec_name)
|
||||
*codec_name = g_strdup ("G726 ADPCM audio");
|
||||
break;
|
||||
|
||||
case GST_RIFF_WAVE_FORMAT_DSP_TRUESPEECH:
|
||||
rate_min = 8000;
|
||||
rate_max = 8000;
|
||||
|
|
Loading…
Reference in a new issue