gst/volume/gstvolume.c: Use oil_scalarmultiply_f64_ns() for double processing when it's available at compile time.

Original commit message from CVS:
* gst/volume/gstvolume.c: (volume_process_double):
Use oil_scalarmultiply_f64_ns() for double processing when it's
available at compile time.
This commit is contained in:
Sebastian Dröge 2008-03-21 15:54:54 +00:00
parent 97782d1744
commit cd5f49f47f
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-03-21 Sebastian Dröge <slomo@circular-chaos.org>
* gst/volume/gstvolume.c: (volume_process_double):
Use oil_scalarmultiply_f64_ns() for double processing when it's
available at compile time.
2008-03-21 Sebastian Dröge <slomo@circular-chaos.org>
* configure.ac:

View file

@ -464,11 +464,17 @@ static void
volume_process_double (GstVolume * this, gpointer bytes, guint n_bytes)
{
gdouble *data = (gdouble *) bytes;
guint i, num_samples = n_bytes / sizeof (gdouble);
guint num_samples = n_bytes / sizeof (gdouble);
#ifdef oil_scalarmultiply_f64_ns
gdouble vol = this->real_vol_f;
oil_scalarmultiply_f64_ns (data, data, &vol, num_samples);
#else
for (i = 0; i < num_samples; i++) {
*data++ *= this->real_vol_f;
}
#endif
}
static void