...
 
Commits (2)
......@@ -30,7 +30,6 @@ objects use Posix-like threads. */
#include <string.h>
#include <errno.h>
#include <math.h>
#include <stdint.h>
#include "m_pd.h"
......@@ -53,7 +52,7 @@ typedef unsigned int uint32;
typedef union
{
float f;
unint32_t ui;
uint32_t ui;
}t_aliasfloatuint;
#define FORMAT_WAVE 0
......@@ -515,7 +514,7 @@ static void soundfile_xferin_sample(int sfchannels, int nvecs, t_sample **vecs,
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;
*fp = (t_float)alias.f;
}
else
{
......@@ -523,7 +522,7 @@ static void soundfile_xferin_sample(int sfchannels, int nvecs, t_sample **vecs,
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;
*fp = (t_float)alias.f;
}
}
}
......@@ -586,7 +585,7 @@ static void soundfile_xferin_float(int sfchannels, int nvecs, t_float **vecs,
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;
*fp = (t_float)alias.f;
}
else
{
......@@ -594,7 +593,7 @@ static void soundfile_xferin_float(int sfchannels, int nvecs, t_float **vecs,
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;
*fp = (t_float)alias.f;
}
}
}
......