interfaces: Use pow() instead of cbrt() for MSVC

This commit is contained in:
David Schleef 2009-12-02 22:16:22 -08:00
parent c54d42bab3
commit 3edafbd0e5

View 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);
}