mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
volume: Enable float processing with orc again
This commit is contained in:
parent
351110a4db
commit
4e0673872d
1 changed files with 0 additions and 9 deletions
|
@ -535,17 +535,8 @@ 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