00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _AFLIBEDITCLIP_H_
00024 #define _AFLIBEDITCLIP_H_
00025
00026
00027 #ifdef HAVE_CONFIG_H
00028 #include <config.h>
00029 #endif
00030
00031
00040 class aflibEditClip {
00041
00042 public:
00043
00044 aflibEditClip();
00045
00046 aflibEditClip(
00047 int input,
00048 long long start_samples_o,
00049 long long stop_samples_o,
00050 long long start_samples_i,
00051 long long stop_samples_i,
00052 double sample_rate_factor);
00053
00054 ~aflibEditClip();
00055
00056 bool
00057 operator < (const aflibEditClip& clip) const;
00058
00059 void
00060 setInput(int input);
00061
00062 int
00063 getInput() const;
00064
00065 void
00066 setStartSamplesOutput(long long start_samples_o);
00067
00068 long long
00069 getStartSamplesOutput() const;
00070
00071 void
00072 setStopSamplesOutput(long long stop_samples_o);
00073
00074 long long
00075 getStopSamplesOutput() const;
00076
00077 void
00078 setStartSamplesInput(long long start_samples_i);
00079
00080 long long
00081 getStartSamplesInput() const;
00082
00083 void
00084 setStopSamplesInput(long long stop_samples_i);
00085
00086 long long
00087 getStopSamplesInput() const;
00088
00089 void
00090 setSampleRateFactor(double sample_rate_factor);
00091
00092 double
00093 getSampleRateFactor() const;
00094
00095 int
00096 compare(const aflibEditClip& clip);
00097
00098
00099 private:
00100
00101 int _input_id;
00102 long long _output_start_samples;
00103 long long _output_stop_samples;
00104 long long _input_start_samples;
00105 long long _input_stop_samples;
00106 double _sample_rate_factor;
00107
00108 };
00109
00110
00111 #endif