1 /* $Id: Test.h,v 1.1 2012/07/08 00:46:02 sarrazip Exp $ 2 3 roundbeetle - SDL-based sound renderer 4 Copyright (C) 2011 Pierre Sarrazin <http://sarrazip.com/> 5 6 This program is free software; you can redistribute it and/or 7 modify it under the terms of the GNU General Public License 8 as published by the Free Software Foundation; either version 2 9 of the License, or (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public 17 License along with this program; if not, write to the Free 18 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 Boston, MA 02110-1301, USA. 20 */ 21 22 #pragma once 23 24 #include <roundbeetle/SampleToFramePanner.h> 25 26 #include <string> 27 28 29 class Test 30 { 31 public: 32 Test(const std::string & _name)33 Test(const std::string &_name) 34 : name(_name), 35 monoToStereoAttenuation(roundbeetle::SampleToFramePanner::monoToStereoAttenuation) 36 { 37 } 38 ~Test()39 virtual ~Test() 40 { 41 } 42 getName()43 virtual std::string getName() const 44 { 45 return name; 46 } 47 48 virtual void run(bool mute) = 0; 49 50 protected: 51 52 std::string name; 53 const float monoToStereoAttenuation; 54 55 }; 56