Stereo.h (764B)
1 /* 2 ZynAddSubFX - a software synthesizer 3 4 Stereo.h - Object for storing a pair of objects 5 Copyright (C) 2009-2009 Mark McCurry 6 Author: Mark McCurry 7 8 This program is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License 10 as published by the Free Software Foundation; either version 2 11 of the License, or (at your option) any later version. 12 */ 13 #ifndef STEREO_H 14 #define STEREO_H 15 16 namespace zyn { 17 18 template<class T> 19 struct Stereo { 20 public: 21 Stereo(const T &left, const T &right); 22 23 /**Initializes Stereo with left and right set to val 24 * @param val the value for both channels*/ 25 Stereo(const T &val); 26 27 //data 28 T l, r; 29 }; 30 31 } 32 33 #include "Stereo.cpp" 34 #endif