From: Stefan Kost Date: Thu, 26 Aug 2010 12:17:20 +0000 (+0300) Subject: volume: make the orc usage for float conditional again X-Git-Tag: 1.19.3~511^2~8132 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4d33ef53baa5ae1d28743992e7f97635ac5411f;p=platform%2Fupstream%2Fgstreamer.git volume: make the orc usage for float conditional again See bug #628009. The tests still fail in the orc code (which we just don't call now). --- diff --git a/gst/volume/gstvolume.c b/gst/volume/gstvolume.c index 269f712..dbe826a 100644 --- 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