volume: Enable float processing with orc again
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 5 Sep 2010 10:09:19 +0000 (12:09 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 5 Sep 2010 10:09:42 +0000 (12:09 +0200)
gst/volume/gstvolume.c

index dbe826a..269f712 100644 (file)
@@ -535,17 +535,8 @@ 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