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

aflibAudioConstantSrc.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 _AFLIBAUDIOCONSTANTSRC_H_
00024 #define _AFLIBAUDIOCONSTANTSRC_H_
00025 
00026 #include "aflibAudio.h"
00027 
00028 
00044 class aflibAudioConstantSrc: public aflibAudio {
00045 
00046 public:
00047 
00048 enum waveform_type
00049 {
00050    WAVEFORM_DCLEVEL,
00051    WAVEFORM_TRIANGLE,
00052    WAVEFORM_SQUAREWAVE,
00053    WAVEFORM_SINEWAVE
00054 };
00055 
00056    // Available contructors and destructors
00057    aflibAudioConstantSrc(aflibAudio& audio);
00058    aflibAudioConstantSrc();
00059 
00060    ~aflibAudioConstantSrc();
00061 
00062    void
00063    setWaveformType(
00064       aflibAudioConstantSrc::waveform_type wave,
00065       double  max_amp,
00066       double  min_amp,
00067       int  frequency);
00068 
00069    aflibStatus
00070    compute_segment(
00071       list<aflibData *>& data,
00072       long long position = -1) ;
00073 
00075    const char *
00076    getName() const { return "aflibAudioConstantSrc";};
00077 
00078 private:
00079 
00080 
00081    aflibAudioConstantSrc(const aflibAudioConstantSrc& op);
00082 
00083    const aflibAudioConstantSrc&
00084    operator=(const aflibAudioConstantSrc& op);
00085 
00086 waveform_type  _wave;
00087 double         _amp_max;
00088 double         _amp_min;
00089 int            _freq;
00090 
00091 };
00092 
00093 
00094 #endif

Generated at Tue Aug 7 22:18:05 2001 for Open Source Audio Library Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001