Experimental implementation of the adaptive filter of "Interface" magazine in 2016-2017

Dependencies:   amakusa mbed-dsp mbed shimabara ukifune unzen_nucleo_f746

Fork of skeleton_unzen_nucleo_f746 by seiichi horie

ハードウェアおよびソフトウェアはskelton_unzen_nucleo_f746を基本にしています。

Revision:
6:486b1cb03e61
Child:
13:b33cb5925113
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/signal_processing.h	Fri Jan 27 01:53:43 2017 +0000
@@ -0,0 +1,30 @@
+#ifndef _SIGNAL_PROCESSING_H_
+#define _SIGNAL_PROCESSING_H_
+
+#include "amakusa.h"
+
+    // User Signal processing Class 
+class SignalProcessing {
+public:
+        // essential members. Do not touch
+    SignalProcessing( unsigned int  block_size );
+    void run(           
+        float rx_left_buffer[],     // array of the left input samples
+        float rx_right_buffer[],    // array of the right input samples
+        float tx_left_buffer[],     // place to write the left output samples
+        float tx_right_buffer[],    // place to write the left output samples
+        unsigned int block_size     // block size [sample]
+        );
+           
+        // project depenedent members.
+    void set_volume( float vol );
+private:
+        // essential members. Do not touch.
+    void enter_critical_section(void);
+    void leave_critical_section(void);
+
+        // project dependent members.
+    float volume_level;
+};
+
+#endif