/[svn]/linuxsampler/trunk/src/engines/EngineChannel.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/EngineChannel.h

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

revision 1878 by iliev, Sat Nov 1 19:01:27 2008 UTC revision 1879 by schoenebeck, Sun Mar 29 18:43:40 2009 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2   *                                                                         *   *                                                                         *
3   *   Copyright (C) 2005 - 2008 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2009 Christian Schoenebeck                       *
4   *                                                                         *   *                                                                         *
5   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
6   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 22  Line 22 
22  #define __LS_ENGINECHANNEL_H__  #define __LS_ENGINECHANNEL_H__
23    
24  #include "../EventListeners.h"  #include "../EventListeners.h"
 #include "../common/atomic.h"  
25  #include "../drivers/audio/AudioOutputDevice.h"  #include "../drivers/audio/AudioOutputDevice.h"
26  #include "../drivers/midi/midi.h"  #include "../drivers/midi/midi.h"
27  #include "../drivers/midi/MidiInputDevice.h"  #include "../drivers/midi/MidiInputDevice.h"
# Line 250  namespace LinuxSampler { Line 249  namespace LinuxSampler {
249               * Reset to no RPN controller currently selected.               * Reset to no RPN controller currently selected.
250               */               */
251              void ResetMidiRpnController();              void ResetMidiRpnController();
252                
253               /**               /**
254               * Registers the specified listener to be notified when the number               * Registers the specified listener to be notified when the number
255               * of effect sends on this channel is changed.               * of effect sends on this channel is changed.
# Line 303  namespace LinuxSampler { Line 302  namespace LinuxSampler {
302              void SetDiskStreamCount(uint Streams);              void SetDiskStreamCount(uint Streams);
303    
304              SamplerChannel* GetSamplerChannel();              SamplerChannel* GetSamplerChannel();
305                
306              void SetSamplerChannel(SamplerChannel* pChannel);              void SetSamplerChannel(SamplerChannel* pChannel);
307    
308              /** Returns the sampler to which this channel belongs */              /** Returns the sampler to which this channel belongs */
# Line 311  namespace LinuxSampler { Line 310  namespace LinuxSampler {
310    
311          protected:          protected:
312              EngineChannel();              EngineChannel();
313              virtual ~EngineChannel() {}; // MUST only be destroyed by EngineChannelFactory              virtual ~EngineChannel(); // MUST only be destroyed by EngineChannelFactory
314    
315              /**              /**
316               * Notifies listeners that the number of effect sends               * Notifies listeners that the number of effect sends
# Line 324  namespace LinuxSampler { Line 323  namespace LinuxSampler {
323              friend class EngineChannelFactory;              friend class EngineChannelFactory;
324    
325          private:          private:
326              int     iMute;              void* pPrivateData;
             bool    bSolo;  
             uint8_t uiMidiProgram;  
             uint8_t uiMidiBankMsb;  
             uint8_t uiMidiBankLsb;  
             uint8_t uiMidiRpnMsb; ///< MIDI Registered Parameter Number (upper 8 bits / coarse)  
             uint8_t uiMidiRpnLsb; ///< MIDI Registered Parameter Number (lower 8 bits / fine)  
             bool    bMidiBankMsbReceived;  
             bool    bMidiBankLsbReceived;  
             bool    bProgramChangeReceived;  
             bool    bMidiRpnReceived;  
             int     iMidiInstrumentMap;  
             atomic_t voiceCount;  
             atomic_t diskStreamCount;  
             SamplerChannel* pSamplerChannel;  
             ListenerList<FxSendCountListener*> llFxSendCountListeners;  
327      };      };
328    
329  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.1878  
changed lines
  Added in v.1879

  ViewVC Help
Powered by ViewVC