gst/audioconvert/gstaudioconvert.c: And enable 24 bits mode as well..
authorWim Taymans <wim.taymans@gmail.com>
Thu, 15 Sep 2005 13:52:27 +0000 (13:52 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Thu, 15 Sep 2005 13:52:27 +0000 (13:52 +0000)
Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c:
And enable 24 bits mode as well..

ChangeLog
gst/audioconvert/gstaudioconvert.c

index 9f66d9e..5674088 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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>
+
        * gst-libs/gst/rtp/Makefile.am:
        * gst-libs/gst/rtp/gstbasertppayload.c:
        (gst_basertppayload_get_type), (gst_basertppayload_base_init),
index 10544a3..b2b9a45 100644 (file)
 
 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 **************************************************************/
 
 static GstElementDetails audio_convert_details = {
@@ -111,6 +107,12 @@ GST_STATIC_CAPS ( \
     "width = (int) 32, " \
     "depth = (int) [ 1, 32 ], " \
     "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, " \
     "rate = (int) [ 1, MAX ], " \
     "channels = (int) [ 1, 8 ], " \
@@ -127,15 +129,6 @@ GST_STATIC_CAPS ( \
     "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 GstStaticCaps gst_audio_convert_static_caps = STATIC_CAPS;