volume: Enable float processing with orc again

This commit is contained in:
Sebastian Dröge 2010-09-05 12:09:19 +02:00
parent 351110a4db
commit 4e0673872d

View 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