interfaces: Use pow() instead of cbrt() for MSVC
authorDavid Schleef <ds@schleef.org>
Thu, 3 Dec 2009 06:16:22 +0000 (22:16 -0800)
committerDavid Schleef <ds@schleef.org>
Thu, 27 May 2010 19:55:43 +0000 (12:55 -0700)
gst-libs/gst/interfaces/streamvolume.c

index a3efe46..e3d1d28 100644 (file)
@@ -198,7 +198,7 @@ gst_stream_volume_convert_volume (GstStreamVolumeFormat from,
         case GST_STREAM_VOLUME_FORMAT_LINEAR:
           return val;
         case GST_STREAM_VOLUME_FORMAT_CUBIC:
-          return cbrt (val);
+          return pow (val, 1 / 3.0);
         case GST_STREAM_VOLUME_FORMAT_DB:
           return 20.0 * log10 (val);
       }