00001 #ifndef _AFLIBAUDIOCLIP_H
00002 #define _AFLIBAUDIOCLIP_H
00003
00004 #include <aflib/aflibAudio.h>
00005
00006 class aflibAudioClip : public aflibAudio {
00007
00008 public:
00009
00010
00011 aflibAudioClip(
00012 aflibAudio& audio );
00013
00014 void setInputConfig( const aflibConfig& cfg );
00015
00016 int setOffset(long offset);
00017 long getOffset() const;
00018 int setLength(long length);
00019 long getLength() const;
00020
00021 aflibData *
00022 process(
00023 aflibException& ret_status,
00024 long position,
00025 int& num_samples,
00026 bool free_memory = true) ;
00027
00028
00030 const char* getName() const { return "aflibAudioClip"; };
00031
00032
00033 private:
00034
00035 long _offset;
00036 long _length;
00037 long _index;
00038 int _parent_id;
00039 };
00040
00041
00042 #endif