projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c54d42b
)
interfaces: Use pow() instead of cbrt() for MSVC
author
David Schleef
<ds@schleef.org>
Thu, 3 Dec 2009 06:16:22 +0000
(22:16 -0800)
committer
David Schleef
<ds@schleef.org>
Thu, 27 May 2010 19:55:43 +0000
(12:55 -0700)
gst-libs/gst/interfaces/streamvolume.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/interfaces/streamvolume.c
b/gst-libs/gst/interfaces/streamvolume.c
index
a3efe46
..
e3d1d28
100644
(file)
--- a/
gst-libs/gst/interfaces/streamvolume.c
+++ b/
gst-libs/gst/interfaces/streamvolume.c
@@
-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);
}