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:
parent
97782d1744
commit
cd5f49f47f
@ -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>
|
2008-03-21 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
@ -464,11 +464,17 @@ static void
|
|||||||
volume_process_double (GstVolume * this, gpointer bytes, guint n_bytes)
|
volume_process_double (GstVolume * this, gpointer bytes, guint n_bytes)
|
||||||
{
|
{
|
||||||
gdouble *data = (gdouble *) 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++) {
|
for (i = 0; i < num_samples; i++) {
|
||||||
*data++ *= this->real_vol_f;
|
*data++ *= this->real_vol_f;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user