|
29 | 29 |
|
30 | 30 | #include "AudioAlignLR_F32.h" |
31 | 31 |
|
32 | | -void AudioAlignLR_F32::update(void) { static uint32_t nnn = 0; |
| 32 | +void AudioAlignLR_F32::update(void) { |
33 | 33 | audio_block_f32_t *block_L,*block_R; |
34 | 34 | audio_block_f32_t *block2_L,*block2_R; |
35 | 35 | audio_block_f32_t *blockOutTestSignal; |
@@ -64,18 +64,15 @@ void AudioAlignLR_F32::update(void) { static uint32_t nnn = 0; |
64 | 64 | return; |
65 | 65 | } |
66 | 66 |
|
67 | | - if(currentTPinfo.TPsignalHardware == TP_SIGNAL_CODEC) |
68 | | - { |
69 | | - blockOutTestSignal = AudioStream_F32::allocate_f32(); |
70 | | - if (!blockOutTestSignal) |
71 | | - { |
72 | | - AudioStream_F32::release(block_L); |
73 | | - AudioStream_F32::release(block_R); |
74 | | - AudioStream_F32::release(block2_L); |
75 | | - AudioStream_F32::release(block2_R); |
76 | | - return; |
77 | | - } |
78 | | - } |
| 67 | + blockOutTestSignal = AudioStream_F32::allocate_f32(); |
| 68 | + if(currentTPinfo.TPsignalHardware==TP_SIGNAL_CODEC && !blockOutTestSignal) |
| 69 | + { |
| 70 | + AudioStream_F32::release(block_L); |
| 71 | + AudioStream_F32::release(block_R); |
| 72 | + AudioStream_F32::release(block2_L); |
| 73 | + AudioStream_F32::release(block2_R); |
| 74 | + return; |
| 75 | + } |
79 | 76 |
|
80 | 77 | // Input data is now in block_L and block_R. Filter from there to |
81 | 78 | // block2_L and block2_R |
@@ -211,8 +208,8 @@ void AudioAlignLR_F32::update(void) { static uint32_t nnn = 0; |
211 | 208 | } |
212 | 209 | } |
213 | 210 | AudioStream_F32::transmit(blockOutTestSignal, 2); // NOTE: Goes to third output |
214 | | - AudioStream_F32::release(blockOutTestSignal); |
215 | 211 | } |
| 212 | + AudioStream_F32::release(blockOutTestSignal); |
216 | 213 |
|
217 | 214 | currentTPinfo.nMeas++; |
218 | 215 | // Serial.println(micros() - t0); // for timing |
|
0 commit comments