/[svn]/linuxsampler/trunk/src/EventListeners.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/EventListeners.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1695 by schoenebeck, Sat Feb 16 01:09:33 2008 UTC revision 2012 by iliev, Fri Oct 23 17:53:17 2009 UTC
# Line 81  namespace LinuxSampler { Line 81  namespace LinuxSampler {
81              std::vector<L> vListenerList;              std::vector<L> vListenerList;
82      };      };
83    
84    #define REGISTER_FIRE_EVENT_METHOD(method) virtual void method() \
85        { for(int i = 0; i < GetListenerCount(); i++) GetListener(i)->method(); }
86    
87    #define REGISTER_FIRE_EVENT_METHOD_ARG1(method, T1) virtual void method(T1 _evt_arg1_) \
88        { for(int i = 0; i < GetListenerCount(); i++) GetListener(i)->method(_evt_arg1_); }
89    
90    #define REGISTER_FIRE_EVENT_METHOD_ARG2(method, T1, T2) virtual void method(T1 _evt_arg1_, T2 _evt_arg2_) \
91        { for(int i = 0; i < GetListenerCount(); i++) GetListener(i)->method(_evt_arg1_, _evt_arg2_); }
92    
93      /**      /**
94       * This class is used as a listener, which is notified       * This class is used as a listener, which is notified
95       * when the number of sampler channels is changed.       * when the number of sampler channels is changed.
# Line 97  namespace LinuxSampler { Line 106  namespace LinuxSampler {
106      };      };
107    
108      /**      /**
109         * This class exists as convenience for creating listener objects.
110         * The methods in this class are empty.
111         */
112        class ChannelCountAdapter : public ChannelCountListener {
113            public:
114                virtual void ChannelCountChanged(int NewCount) { };
115                virtual void ChannelAdded(SamplerChannel* pChannel) { };
116                virtual void ChannelToBeRemoved(SamplerChannel* pChannel) { };
117        };
118    
119        /**
120       * This class is used as a listener, which is notified       * This class is used as a listener, which is notified
121       * when the number of audio output devices is changed.       * when the number of audio output devices is changed.
122       */       */

Legend:
Removed from v.1695  
changed lines
  Added in v.2012

  ViewVC Help
Powered by ViewVC