mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
M17: more fixes
This commit is contained in:
parent
c1198ff885
commit
ef873c00bb
@ -20,6 +20,7 @@
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "dsp/dsptypes.h"
|
||||
#include "audio/audiocompressor.h"
|
||||
#include "M17Demodulator.h"
|
||||
#include "m17demodfilters.h"
|
||||
|
@ -48,11 +48,11 @@ void M17ModDecimator::initialize(
|
||||
mKernel[i] = 0;
|
||||
}
|
||||
|
||||
for (int i = 0; i < activeKernelSize; i++)
|
||||
for (unsigned int i = 0; i < activeKernelSize; i++)
|
||||
{
|
||||
double y;
|
||||
|
||||
if (i == M/2) {
|
||||
if (i == (unsigned int) M/2) {
|
||||
y = 2 * M_PI * Fc;
|
||||
} else {
|
||||
y = (sin(2 * M_PI * Fc * (i - M / 2)) / (i - M / 2) *
|
||||
@ -114,7 +114,7 @@ void M17ModDecimator::decimate(int16_t *in, int16_t *out, unsigned int outCount)
|
||||
for (unsigned int i = 0; i < outCount; i++)
|
||||
{
|
||||
// Insert mRatio input samples at cursor.
|
||||
for (unsigned int j = 0; j < mRatio; j++) {
|
||||
for (int j = 0; j < mRatio; j++) {
|
||||
*shiftp++ = *inp++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user