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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers signal_processing.h Source File

signal_processing.h

00001 #ifndef _SIGNAL_PROCESSING_H_
00002 #define _SIGNAL_PROCESSING_H_
00003 
00004 #include "amakusa.h"
00005 
00006     // User Signal processing Class 
00007 class SignalProcessing {
00008 public:
00009         // essential members. Do not touch
00010     SignalProcessing( unsigned int  block_size );
00011     void run(           
00012         float rx_left_buffer[],     // array of the left input samples
00013         float rx_right_buffer[],    // array of the right input samples
00014         float tx_left_buffer[],     // place to write the left output samples
00015         float tx_right_buffer[],    // place to write the right output samples
00016         unsigned int block_size     // block size [sample]
00017         );
00018            
00019         // project depenedent members.
00020     void set_volume( float vol );
00021 private:
00022         // essential members. Do not touch.
00023     void enter_critical_section(void);
00024     void leave_critical_section(void);
00025 
00026         // project dependent members.
00027     float volume_level;
00028 };
00029 
00030 #endif