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:
3a04b08
)
volume: make the orc usage for float conditional again
author
Stefan Kost
<ensonic@users.sf.net>
Thu, 26 Aug 2010 12:17:20 +0000
(15:17 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Thu, 26 Aug 2010 12:19:00 +0000
(15:19 +0300)
See bug #628009. The tests still fail in the orc code (which we just don't call
now).
gst/volume/gstvolume.c
patch
|
blob
|
history
diff --git
a/gst/volume/gstvolume.c
b/gst/volume/gstvolume.c
index
269f712
..
dbe826a
100644
(file)
--- a/
gst/volume/gstvolume.c
+++ b/
gst/volume/gstvolume.c
@@
-535,8
+535,17
@@
volume_process_float (GstVolume * self, gpointer bytes, guint n_bytes)
{
gfloat *data = (gfloat *) bytes;
guint num_samples = n_bytes / sizeof (gfloat);
+#ifndef broken
+ int i;
+
+ gdouble vol = self->current_volume;
+ for (i = 0; i < num_samples; i++) {
+ data[i] *= vol;
+ }
+#else
orc_scalarmultiply_f32_ns (data, data, self->current_volume, num_samples);
+#endif
}
static void