00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef MARSYAS_OGGSOURCE_H
00020 #define MARSYAS_OGGSOURCE_H
00021
00022 #include "common_header.h"
00023 #include "AbsSoundFileSource.h"
00024
00025
00026
00027 struct OggVorbis_File;
00028 struct vorbis_info;
00029
00030 namespace Marsyas
00031 {
00042 class OggFileSource: public AbsSoundFileSource
00043 {
00044 private:
00045
00046 void addControls();
00047 void myUpdate(MarControlPtr sender);
00048 void closeFile();
00049
00050 OggVorbis_File *vf;
00051 vorbis_info *vi;
00052
00053 public:
00054
00055 OggFileSource(std::string name);
00056 OggFileSource(const OggFileSource& a);
00057 ~OggFileSource();
00058 MarSystem* clone() const;
00059
00060 void myProcess(realvec& in, realvec& out);
00061 void getHeader(std::string filename);
00062
00063 };
00064
00065 }
00066
00067 #endif