mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
interfaces: Use pow() instead of cbrt() for MSVC
This commit is contained in:
parent
c54d42bab3
commit
3edafbd0e5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue