You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
373 B
14 lines
373 B
#include "AudioMathOffset_F32.h"
|
|
|
|
void AudioMathOffset_F32::update(void) {
|
|
audio_block_f32_t *block;
|
|
|
|
block = AudioStream_F32::receiveWritable_f32(0);
|
|
if (!block) return;
|
|
|
|
//use the ARM-optimized routine to add the offset
|
|
arm_offset_f32(block->data, offset, block->data, block->length);
|
|
|
|
AudioStream_F32::transmit(block);
|
|
AudioStream_F32::release(block);
|
|
}
|
|
|