gst/audioconvert/gstaudioconvert.c: And enable 24 bits mode as well..

Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c:
And enable 24 bits mode as well..
This commit is contained in:
Wim Taymans 2005-09-15 13:52:27 +00:00
parent 022f6698f0
commit b6bc76642a
2 changed files with 11 additions and 13 deletions

View file

@ -1,3 +1,8 @@
2005-09-15 Wim Taymans <wim@fluendo.com>
* gst/audioconvert/gstaudioconvert.c:
And enable 24 bits mode as well..
2005-09-15 Wim Taymans <wim@fluendo.com> 2005-09-15 Wim Taymans <wim@fluendo.com>
* gst-libs/gst/rtp/Makefile.am: * gst-libs/gst/rtp/Makefile.am:

View file

@ -45,10 +45,6 @@
GST_DEBUG_CATEGORY (audio_convert_debug); GST_DEBUG_CATEGORY (audio_convert_debug);
/* int to float conversion: int2float(i) = 1 / (2^31-1) * i */
#define INT2FLOAT(i) (4.6566128752457969e-10 * ((gfloat)i))
/*** DEFINITIONS **************************************************************/ /*** DEFINITIONS **************************************************************/
static GstElementDetails audio_convert_details = { static GstElementDetails audio_convert_details = {
@ -111,6 +107,12 @@ GST_STATIC_CAPS ( \
"width = (int) 32, " \ "width = (int) 32, " \
"depth = (int) [ 1, 32 ], " \ "depth = (int) [ 1, 32 ], " \
"signed = (boolean) { true, false }; " \ "signed = (boolean) { true, false }; " \
"audio/x-raw-int, " \
"rate = (int) [ 1, MAX ], " \
"channels = (int) [ 1, 8 ], " \
"endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, " \
"width = (int) 24, " \
"depth = (int) [ 1, 24 ], " "signed = (boolean) { true, false }; " \
"audio/x-raw-int, " \ "audio/x-raw-int, " \
"rate = (int) [ 1, MAX ], " \ "rate = (int) [ 1, MAX ], " \
"channels = (int) [ 1, 8 ], " \ "channels = (int) [ 1, 8 ], " \
@ -127,15 +129,6 @@ GST_STATIC_CAPS ( \
"signed = (boolean) { true, false } " \ "signed = (boolean) { true, false } " \
) )
/* FIXME: put back 24 bit audio */
#if 0
"audio/x-raw-int, "
"rate = (int) [ 1, MAX ], "
"channels = (int) [ 1, 8 ], "
"endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, "
"width = (int) 24, "
"depth = (int) [ 1, 24 ], " "signed = (boolean) { true, false }; "
#endif
static GstAudioChannelPosition *supported_positions; static GstAudioChannelPosition *supported_positions;
static GstStaticCaps gst_audio_convert_static_caps = STATIC_CAPS; static GstStaticCaps gst_audio_convert_static_caps = STATIC_CAPS;