Commit ac38fbc3 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

volume: Implement f64 scaling with orc

This requires orc 0.4.10
parent f5e9d8bb
......@@ -502,13 +502,8 @@ volume_process_double (GstVolume * self, gpointer bytes, guint n_bytes)
{
gdouble *data = (gdouble *) bytes;
guint num_samples = n_bytes / sizeof (gdouble);
int i;
gdouble vol = self->current_volume;
for (i = 0; i < num_samples; i++) {
data[i] *= vol;
}
orc_scalarmultiply_f64_ns (data, self->current_volume, num_samples);
}
static void
......
.init gst_volume_orc_init
.function orc_scalarmultiply_f64_ns
.dest 8 d1 double
.floatparam 8 p1
muld d1, d1, p1
.function orc_scalarmultiply_f32_ns
.dest 4 d1 float
.floatparam 4 p1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment