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

Diff of /linuxsampler/trunk/src/engines/gig/Engine.h

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

revision 1788 by persson, Sat Sep 6 14:55:18 2008 UTC revision 1789 by iliev, Sat Nov 1 19:01:27 2008 UTC
# Line 84  namespace LinuxSampler { namespace gig { Line 84  namespace LinuxSampler { namespace gig {
84              virtual String EngineName();              virtual String EngineName();
85              virtual InstrumentManager* GetInstrumentManager();              virtual InstrumentManager* GetInstrumentManager();
86    
87                void SetVoiceCount(uint Count);
88    
89              // Simple array wrapper just to make sure memory is freed              // Simple array wrapper just to make sure memory is freed
90              // when liblinuxsampler is unloaded              // when liblinuxsampler is unloaded
91              class FloatTable {              class FloatTable {
# Line 113  namespace LinuxSampler { namespace gig { Line 115  namespace LinuxSampler { namespace gig {
115              RTList<Event>*          pGlobalEvents;         ///< All engine global events for the current audio fragment (usually only SysEx messages).              RTList<Event>*          pGlobalEvents;         ///< All engine global events for the current audio fragment (usually only SysEx messages).
116              Pool<Event>*            pEventPool;            ///< Contains all Event objects that can be used.              Pool<Event>*            pEventPool;            ///< Contains all Event objects that can be used.
117              RingBuffer<uint8_t,false>* pSysexBuffer;       ///< Input buffer for MIDI system exclusive messages.              RingBuffer<uint8_t,false>* pSysexBuffer;       ///< Input buffer for MIDI system exclusive messages.
             int                     ActiveVoiceCount;      ///< number of currently active voices (this value will be returned for public calls)  
118              int                     ActiveVoiceCountTemp;  ///< number of currently active voices (for internal usage, will be used for incrementation)              int                     ActiveVoiceCountTemp;  ///< number of currently active voices (for internal usage, will be used for incrementation)
119              int                     ActiveVoiceCountMax;   ///< the maximum voice usage since application start              int                     ActiveVoiceCountMax;   ///< the maximum voice usage since application start
120              int                     VoiceSpawnsLeft;       ///< We only allow CONFIG_MAX_VOICES voices to be spawned per audio fragment, we use this variable to ensure this limit.              int                     VoiceSpawnsLeft;       ///< We only allow CONFIG_MAX_VOICES voices to be spawned per audio fragment, we use this variable to ensure this limit.
# Line 185  namespace LinuxSampler { namespace gig { Line 186  namespace LinuxSampler { namespace gig {
186              static float* InitCurve(const float* segments, int size = 128);              static float* InitCurve(const float* segments, int size = 128);
187    
188              unsigned long FrameTime; ///< Time in frames of the start of the current audio fragment              unsigned long FrameTime; ///< Time in frames of the start of the current audio fragment
189    
190                atomic_t ActiveVoiceCount; ///< number of currently active voices
191                
192      };      };
193    
194  }} // namespace LinuxSampler::gig  }} // namespace LinuxSampler::gig

Legend:
Removed from v.1788  
changed lines
  Added in v.1789

  ViewVC Help
Powered by ViewVC