removed conditional declare

pull/13/head
boblark 3 years ago
parent b123512146
commit a8a82af2a5
  1. 9
      AudioAlignLR_F32.cpp

@ -29,7 +29,7 @@
#include "AudioAlignLR_F32.h"
void AudioAlignLR_F32::update(void) { static uint32_t nnn = 0;
void AudioAlignLR_F32::update(void) {
audio_block_f32_t *block_L,*block_R;
audio_block_f32_t *block2_L,*block2_R;
audio_block_f32_t *blockOutTestSignal;
@ -64,10 +64,8 @@ void AudioAlignLR_F32::update(void) { static uint32_t nnn = 0;
return;
}
if(currentTPinfo.TPsignalHardware == TP_SIGNAL_CODEC)
{
blockOutTestSignal = AudioStream_F32::allocate_f32();
if (!blockOutTestSignal)
if(currentTPinfo.TPsignalHardware==TP_SIGNAL_CODEC && !blockOutTestSignal)
{
AudioStream_F32::release(block_L);
AudioStream_F32::release(block_R);
@ -75,7 +73,6 @@ void AudioAlignLR_F32::update(void) { static uint32_t nnn = 0;
AudioStream_F32::release(block2_R);
return;
}
}
// Input data is now in block_L and block_R. Filter from there to
// block2_L and block2_R
@ -211,8 +208,8 @@ void AudioAlignLR_F32::update(void) { static uint32_t nnn = 0;
}
}
AudioStream_F32::transmit(blockOutTestSignal, 2); // NOTE: Goes to third output
AudioStream_F32::release(blockOutTestSignal);
}
AudioStream_F32::release(blockOutTestSignal);
currentTPinfo.nMeas++;
// Serial.println(micros() - t0); // for timing

Loading…
Cancel
Save