zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit adc0fa753999bc7416d3fffb106d453f9e0eba30
parent 40ca8aafb57462f004e8ff08e31639d868382dc1
Author: Mark McCurry <[email protected]>
Date:   Sat,  6 Jun 2009 10:29:55 -0400

Removed some obsolete code

Diffstat:
Dsrc/Samples/StereoSample.C | 29-----------------------------
Dsrc/Samples/StereoSample.h | 44--------------------------------------------
2 files changed, 0 insertions(+), 73 deletions(-)

diff --git a/src/Samples/StereoSample.C b/src/Samples/StereoSample.C @@ -1,29 +0,0 @@ -#include "StereoSample.h" - -StereoSample::StereoSample(int length) - :leftSample(length),rightSample(length) -{std::cout<<"StereoSample\n";} - -void StereoSample::clear() -{ - std::cout<<"StereoSample::Clear\n"; - leftSample.clear(); - rightSample.clear(); -} - -int StereoSample::size() const -{ - return(leftSample.size()); -} - -float & StereoSample::operator[](const int &index) -{ - return(leftSample[index]); -} - -StereoSample & StereoSample::operator=(const StereoSample & smp) -{ - std::cout<<"StereoSample::operator=\n"; - leftSample=smp.leftSample; - rightSample=smp.rightSample; -} diff --git a/src/Samples/StereoSample.h b/src/Samples/StereoSample.h @@ -1,44 +0,0 @@ -/* - ZynAddSubFX - a software synthesizer - - Sample.h - Object for storing information on samples - - This program is free software; you can redistribute it and/or modify - it under the terms of version 2 of the GNU General Public License - as published by the Free Software Foundation. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License (version 2 or later) for more details. - - You should have received a copy of the GNU General Public License (version 2) - along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ -#ifndef STEREOSAMPLE_H -#define STEREOSAMPLE_H - -#include <iostream> -#include "Sample.h" -#include "MonoSample.h" - -class StereoSample:public Sample{ - public: - StereoSample(int length); - StereoSample(const MonoSample &left_,const MonoSample &right_); - ~StereoSample(){std::cout<<"~StereoSample\n";}; - void clear(); - int size() const; - - float &operator[](const int &index); - StereoSample &operator=(const StereoSample &smp); - MonoSample &left(){return leftSample;}; - MonoSample &right(){return rightSample;}; - private: - MonoSample leftSample; - MonoSample rightSample; - -}; -#endif -