Commit 51b648a4 by Pranay Gupta

removed warnings about variable initialization

parent 1335c76d
Pipeline #1331 failed with stage
in 0 seconds
......@@ -511,18 +511,22 @@ static void soundfile_xferin_sample(int sfchannels, int nvecs, t_sample **vecs,
if (bigendian)
{
for (j = 0, sp2 = sp, fp=vecs[i] + spread * itemsread;
j < nitems; j++, sp2 += bytesperframe, fp += spread)
j < nitems; j++, sp2 += bytesperframe, fp += spread)
{
alias.ui = ((sp2[0] << 24) | (sp2[1] << 16)
| (sp2[2] << 8) | sp2[3]);
*fp = (t_float)alias.f;
}
}
else
{
for (j = 0, sp2 = sp, fp=vecs[i] + spread * itemsread;
j < nitems; j++, sp2 += bytesperframe, fp += spread)
j < nitems; j++, sp2 += bytesperframe, fp += spread)
{
alias.ui = ((sp2[3] << 24) | (sp2[2] << 16)
| (sp2[1] << 8) | sp2[0]);
*fp = (t_float)alias.f;
}
}
}
}
......@@ -582,18 +586,22 @@ static void soundfile_xferin_float(int sfchannels, int nvecs, t_float **vecs,
if (bigendian)
{
for (j = 0, sp2 = sp, fp=vecs[i] + spread * itemsread;
j < nitems; j++, sp2 += bytesperframe, fp += spread)
j < nitems; j++, sp2 += bytesperframe, fp += spread)
{
alias.ui = ((sp2[0] << 24) | (sp2[1] << 16)
| (sp2[2] << 8) | sp2[3]);
*fp = (t_float)alias.f;
}
}
else
{
for (j = 0, sp2 = sp, fp=vecs[i] + spread * itemsread;
j < nitems; j++, sp2 += bytesperframe, fp += spread)
j < nitems; j++, sp2 += bytesperframe, fp += spread)
{
alias.ui = ((sp2[3] << 24) | (sp2[2] << 16)
| (sp2[1] << 8) | sp2[0]);
*fp = (t_float)alias.f;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment