瀏覽代碼

FIR only needs one input buffer

dds
Pete (El Supremo) 10 年之前
父節點
當前提交
10c8a8634d
共有 1 個文件被更改,包括 7 次插入5 次删除
  1. +7
    -5
      filter_fir.h

+ 7
- 5
filter_fir.h 查看文件

@@ -44,7 +44,7 @@ public AudioStream
{
public:
AudioFilterFIR(const boolean a_f):
AudioStream(2,inputQueueArray), arm_fast(a_f), coeff_p(NULL)
AudioStream(1,inputQueueArray), arm_fast(a_f), coeff_p(NULL)
{
}

@@ -53,16 +53,18 @@ public:
void stop(void);
private:
audio_block_t *inputQueueArray[2];
audio_block_t *inputQueueArray[1];
// arm state arrays and FIR instances for left and right channels
// the state arrays are defined to handle a maximum of MAX_COEFFS
// coefficients in a filter
q15_t l_StateQ15[AUDIO_BLOCK_SAMPLES + MAX_COEFFS];
arm_fir_instance_q15 l_fir_inst;
// pointer to current coefficients or NULL or FIR_PASSTHRU
short *coeff_p;

// Whether to use the fast arm FIR code
const boolean arm_fast;
// pointer to current coefficients or NULL or FIR_PASSTHRU
short *coeff_p;
arm_fir_instance_q15 l_fir_inst;

};

#endif

Loading…
取消
儲存