Mercurial > hg > easaier-soundaccess
view sv/filter/Filter.h @ 107:c3ac34b2e45b
correct bugs after DAN review
author | lbajardsilogic |
---|---|
date | Thu, 13 Sep 2007 12:42:44 +0000 |
parents | 5060939ca69d |
children | 3d68e73a877b |
line wrap: on
line source
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* Sound Access EASAIER client application. Silogic 2007. Laure Bajard. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the file COPYING included with this distribution for more information. */ #ifndef _FILTER_H_ #define _FILTER_H_ #include "base/PropertyContainer.h" class Filter : public PropertyContainer { Q_OBJECT public: Filter(); virtual ~Filter(); virtual QString getPropertyLabel(const PropertyName &) const {return "";} virtual QString getPropertyContainerName() const {return "";} virtual QString getPropertyContainerIconName() const {return "";} /** * Put (and possibly process) a given number of input samples. * Number should usually equal the value returned from * getRequiredInputSamples(). */ virtual void putInput(float **input, size_t samples) = 0; /** * Get some processed samples. */ virtual void getOutput(float **output, size_t samples) = 0; virtual size_t getRequiredInputSamples(size_t outputSamplesNeeded) = 0; inline void setSourceChannelCount(size_t channel){m_sourceChannelCount = channel;} inline size_t getSourceChannelCount(){return m_sourceChannelCount;} bool isFilterEnabled(); signals : void filterEnableChanged(bool); protected: size_t m_sourceChannelCount; bool filterEnabled; public slots : void setFilterEnabled(bool b); void setFilterEnabled(int b); }; #endif