mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
fix sign confusion
This commit is contained in:
parent
74e5f9fbcf
commit
e918f9f77c
60 changed files with 164 additions and 146 deletions
|
|
@ -25,8 +25,8 @@
|
|||
#include <math.h>
|
||||
|
||||
struct peaks_data {
|
||||
unsigned o_count;
|
||||
unsigned i_count;
|
||||
uint32_t o_count;
|
||||
uint32_t i_count;
|
||||
float max_f[0];
|
||||
};
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ static void impl_peaks_process(struct resample *r, int channel,
|
|||
{
|
||||
struct peaks_data *pd = r->data;
|
||||
float *s = src, *d = dst, m;
|
||||
int i, o, end, chunk;
|
||||
uint32_t i, o, end, chunk;
|
||||
|
||||
o = i = 0;
|
||||
m = pd->max_f[channel];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue