43 lines
1.0 KiB
C
Raw Normal View History

/**
* @author Edouard DUPIN
*
* @copyright 2010, Edouard DUPIN, all right reserved
*
* @license APACHE-2 (see license file)
*/
#ifndef __APPL_WINDOWS_H__
#define __APPL_WINDOWS_H__
#include <ewol/widget/Windows.h>
#include <ewol/widget/Layer.h>
#include <ewol/widget/Composer.h>
2015-03-26 22:28:37 +01:00
#include <drain/Equalizer.h>
namespace appl {
class Windows : public ewol::widget::Windows {
protected:
Windows();
void init();
public:
DECLARE_FACTORY(Windows);
protected:
std::shared_ptr<ewol::widget::Composer> m_gui;
2015-03-26 22:28:37 +01:00
void onCallbackSampleRate(const std::string& _value);
void onCallbackType(const std::string& _value);
void onCallbackGain(const std::string& _value);
void onCallbackFrequency(const std::string& _value);
2015-03-26 22:28:37 +01:00
void onCallbackBandWidth(const std::string& _value);
void onCallbackStart();
protected:
int32_t m_sampleRate;
enum drain::filterType m_type;
float m_cutFrequency;
float m_gain;
float m_bandWidth;
std::vector<std::pair<float,float> > m_data;
};
};
#endif