mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
volume: make the orc usage for float conditional again
See bug #628009. The tests still fail in the orc code (which we just don't call now).
This commit is contained in:
parent
3a04b08437
commit
e4d33ef53b
1 changed files with 9 additions and 0 deletions
|
@ -535,8 +535,17 @@ 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
|
||||
|
|
Loading…
Reference in a new issue