mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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
2 changed files with 13 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue