00001 // 00002 // Clipper.h -- hard clipping processor 00003 // See the copyright notice and acknowledgment of authors in the file COPYRIGHT 00004 // 00005 00006 #ifndef CSL_Clipper_H 00007 #define CSL_Clipper_H 00008 00009 #include "CSL_Core.h" 00010 00011 namespace csl { 00012 00014 00015 typedef enum { 00016 kMin, 00017 kMax, 00018 kBoth 00019 } ClipperFlags; 00020 00021 class Clipper : public Effect { 00022 00023 public: 00025 Clipper(UnitGenerator & input, float min = -1, float max = 1, ClipperFlags flags = kBoth); 00026 ~Clipper(); 00027 00028 void dump(); 00029 00030 void nextBuffer(Buffer &outputBuffer, unsigned outBufNum) throw (CException); 00031 00032 private: 00033 ClipperFlags mFlags; 00034 float mMin, mMax; 00035 }; 00036 00037 } 00038 00039 #endif
1.4.5-20051010