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.
35 lines
1.0 KiB
35 lines
1.0 KiB
/*
|
|
* AudioMultiply_F32
|
|
*
|
|
* Created: Patrick Radius, December 2016
|
|
* Purpose: Multiply two channels of audio data. Can be used for example as 'vca' or amplitude modulation.
|
|
* Assumes floating-point data.
|
|
*
|
|
* This processes a single stream fo audio data (ie, it is mono)
|
|
*
|
|
* NOTE: *** This is functionally the same clss as AudioMathMultiply_F32 ***
|
|
* Both classes are continued for back compatibility. Use ofAudioMathMultiply_F32
|
|
* is preferred. We need to pick one.
|
|
*
|
|
* MIT License. use at your own risk.
|
|
*/
|
|
#ifndef AUDIOMULTIPLYF32_H
|
|
#define AUDIOMULTIPLYF32_H
|
|
|
|
#include <arm_math.h>
|
|
#include <AudioStream_F32.h>
|
|
|
|
class AudioMultiply_F32 : public AudioStream_F32
|
|
{
|
|
//GUI: inputs:2, outputs:1 //this line used for automatic generation of GUI node
|
|
public:
|
|
AudioMultiply_F32(void) : AudioStream_F32(2, inputQueueArray_f32) {};
|
|
AudioMultiply_F32(const AudioSettings_F32 &settings) : AudioStream_F32(2, inputQueueArray_f32) {};
|
|
|
|
void update(void);
|
|
|
|
private:
|
|
audio_block_f32_t *inputQueueArray_f32[2];
|
|
};
|
|
|
|
#endif
|
|
|