00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MARSYAS_PEAKVIEWSINK_H
00020 #define MARSYAS_PEAKVIEWSINK_H
00021
00022 #include "MarSystem.h"
00023
00024 #include <fstream>
00025 #include <iostream>
00026
00027
00028
00029 namespace Marsyas
00030 {
00052 class PeakViewSink: public MarSystem
00053 {
00054 private:
00055 mrs_natural count_;
00056 std::string tmpFilename_;
00057 std::ofstream tmpFile_;
00058 realvec accumData_;
00059
00060 MarControlPtr ctrl_accumulate2Disk_;
00061 MarControlPtr ctrl_fs_;
00062 MarControlPtr ctrl_frameSize_;
00063 MarControlPtr ctrl_done_;
00064 MarControlPtr ctrl_filename_;
00065
00066 void done();
00067 void addControls();
00068 void myUpdate(MarControlPtr sender);
00069
00070 public:
00071 PeakViewSink(std::string name);
00072 PeakViewSink(const PeakViewSink& a);
00073 ~PeakViewSink();
00074 MarSystem* clone() const;
00075
00076 void myProcess(realvec& in, realvec& out);
00077 };
00078
00079 }
00080
00081 #endif // MARSYAS_PEAKVIEWSINK_H