|
|
@ -38,14 +38,18 @@ void RadioIQMixer_F32::update(void) { |
|
|
|
if (!blockIn0) |
|
|
|
if (!blockIn0) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if(twoChannel) { |
|
|
|
if(twoChannel) |
|
|
|
|
|
|
|
{ |
|
|
|
blockIn1 = AudioStream_F32::receiveWritable_f32(1); |
|
|
|
blockIn1 = AudioStream_F32::receiveWritable_f32(1); |
|
|
|
if (!blockIn1) { |
|
|
|
if (!blockIn1) |
|
|
|
|
|
|
|
{ |
|
|
|
AudioStream_F32::release(blockIn0); |
|
|
|
AudioStream_F32::release(blockIn0); |
|
|
|
if(errorPrintIQM) Serial.println("IQMIXER-ERR: No 1 input memory"); |
|
|
|
if(errorPrintIQM) Serial.println("IQMIXER-ERR: No 1 input memory"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
blockIn1 = NULL; |
|
|
|
|
|
|
|
|
|
|
|
// Try to get a pair of blocks for the IQ output
|
|
|
|
// Try to get a pair of blocks for the IQ output
|
|
|
|
blockOut_i = AudioStream_F32::allocate_f32(); |
|
|
|
blockOut_i = AudioStream_F32::allocate_f32(); |
|
|
|