|
|
|
@ -440,12 +440,12 @@ void HSPPostProcessor::scopeify(unsigned long time, unsigned char *data, size_t
|
|
|
|
|
|
|
|
|
|
void HSPPostProcessor::updateEQgains(int pamp, vector<int> &equalizerGains)
|
|
|
|
|
{
|
|
|
|
|
for (int i=0; i<ETQ_CHANNELS; i++)
|
|
|
|
|
for (int i=0; i<EQ_CHANNELS; i++)
|
|
|
|
|
{
|
|
|
|
|
preamp[i] = (float) pamp * 0.01;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int j=0; j<ETQ_MAX_BANDS; j++)
|
|
|
|
|
for (int j=0; j<EQ_MAX_BANDS; j++)
|
|
|
|
|
gain[j][i] = (float)(equalizerGains[j]) * 0.012 - 0.2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -455,7 +455,7 @@ void HSPPostProcessor::equalize(unsigned char *inbuf, unsigned char *outbuf, siz
|
|
|
|
|
{
|
|
|
|
|
int index, band, channel;
|
|
|
|
|
int tempint, halflength;
|
|
|
|
|
float out[ETQ_CHANNELS], pcm[ETQ_CHANNELS];
|
|
|
|
|
float out[EQ_CHANNELS], pcm[EQ_CHANNELS];
|
|
|
|
|
short int *data = (short int *) inbuf;
|
|
|
|
|
short int *dataout = (short int *) outbuf;
|
|
|
|
|
|
|
|
|
|