Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

aflibEditClip.h

Go to the documentation of this file.
00001 /*
00002  * Copyright: (C) 1999-2001 Bruce W. Forsberg
00003  *
00004  *   This library is free software; you can redistribute it and/or
00005  *   modify it under the terms of the GNU Lesser General Public
00006  *   License as published by the Free Software Foundation; either
00007  *   version 2.1 of the License, or any later version.
00008  *
00009  *   This library is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  *   Lesser General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU Lesser General Public
00015  *   License along with this library; if not, write to the Free Software
00016  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00017  *
00018  *   Bruce Forsberg  forsberg@tns.net
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

Generated on Wed May 8 20:51:06 2002 for Open Source Audio Library Project by doxygen1.2.15