1 /* SpiralSound 2 * Copyleft (C) 2001 David Griffiths <dave@pawfal.org> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 19 #include "../SpiralPlugin.h" 20 #include <FL/Fl_Pixmap.H> 21 22 #ifndef RINGMODPLUGIN 23 #define RINGMODPLUGIN 24 25 class RingModPlugin : public SpiralPlugin 26 { 27 public: 28 RingModPlugin(); 29 virtual ~RingModPlugin(); 30 31 virtual PluginInfo &Initialise(const HostInfo *Host); 32 virtual SpiralGUIType *CreateGUI(); 33 virtual void Execute(); 34 virtual void StreamOut(std::ostream &s); 35 virtual void StreamIn(std::istream &s); 36 GetAmount()37 float GetAmount() { return m_Amount; } 38 39 void Randomise(); 40 41 private: 42 float m_Amount; 43 44 friend std::istream &operator>>(std::istream &s, RingModPlugin &o); 45 friend std::ostream &operator<<(std::ostream &s, RingModPlugin &o); 46 }; 47 std::istream &operator>>(std::istream &s, RingModPlugin &o); 48 std::ostream &operator<<(std::ostream &s, RingModPlugin &o); 49 50 #endif 51