/[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 285 by schoenebeck, Thu Oct 14 21:31:26 2004 UTC revision 376 by senkov, Sat Feb 12 23:48:50 2005 UTC
# Line 100  namespace LinuxSampler { namespace gig { Line 100  namespace LinuxSampler { namespace gig {
100              virtual String Version();              virtual String Version();
101              virtual String EngineName();              virtual String EngineName();
102              virtual String InstrumentFileName();              virtual String InstrumentFileName();
103                virtual String InstrumentName();
104              virtual int    InstrumentIndex();              virtual int    InstrumentIndex();
105              virtual int    InstrumentStatus();              virtual int    InstrumentStatus();
106    
107              // abstract methods derived from interface class 'InstrumentConsumer'              // abstract methods derived from interface class 'InstrumentConsumer'
108              virtual void ResourceToBeUpdated(::gig::Instrument* pResource, void*& pUpdateArg);              virtual void ResourceToBeUpdated(::gig::Instrument* pResource, void*& pUpdateArg);
109              virtual void ResourceUpdated(::gig::Instrument* pOldResource, ::gig::Instrument* pNewResource, void* pUpdateArg);              virtual void ResourceUpdated(::gig::Instrument* pOldResource, ::gig::Instrument* pNewResource, void* pUpdateArg);
110          protected:          //protected:
111              struct midi_key_info_t {              struct midi_key_info_t {
112                  RTList<Voice>*  pActiveVoices;  ///< Contains the active voices associated with the MIDI key.                  RTList<Voice>*  pActiveVoices;  ///< Contains the active voices associated with the MIDI key.
113                  bool            KeyPressed;     ///< Is true if the respective MIDI key is currently pressed.                  bool            KeyPressed;     ///< Is true if the respective MIDI key is currently pressed.
# Line 148  namespace LinuxSampler { namespace gig { Line 149  namespace LinuxSampler { namespace gig {
149              bool                    SustainPedal;          ///< true if sustain pedal is down              bool                    SustainPedal;          ///< true if sustain pedal is down
150              double                  GlobalVolume;          ///< overall volume (a value < 1.0 means attenuation, a value > 1.0 means amplification)              double                  GlobalVolume;          ///< overall volume (a value < 1.0 means attenuation, a value > 1.0 means amplification)
151              int                     Pitch;                 ///< Current (absolute) MIDI pitch value.              int                     Pitch;                 ///< Current (absolute) MIDI pitch value.
152                int                     CurrentKeyDimension;   ///< Current value (0-127) for the keyboard dimension, altered by pressing a keyswitching key.
153              int                     ActiveVoiceCount;      ///< number of currently active voices              int                     ActiveVoiceCount;      ///< number of currently active voices
154              int                     ActiveVoiceCountMax;   ///< the maximum voice usage since application start              int                     ActiveVoiceCountMax;   ///< the maximum voice usage since application start
155              bool                    SuspensionRequested;              bool                    SuspensionRequested;
156              ConditionServer         EngineDisabled;              ConditionServer         EngineDisabled;
157              String                  InstrumentFile;              String                  InstrumentFile;
158              int                     InstrumentIdx;              int                     InstrumentIdx;
159                String                  InstrumentIdxName;
160              int                     InstrumentStat;              int                     InstrumentStat;
161              int8_t                  ScaleTuning[12];       ///< contains optional detune factors (-64..+63 cents) for all 12 semitones of an octave              int8_t                  ScaleTuning[12];       ///< contains optional detune factors (-64..+63 cents) for all 12 semitones of an octave
162              RTList<Voice>::Iterator itLastStolenVoice;      ///< Only for voice stealing: points to the last voice which was theft in current audio fragment, NULL otherwise.              RTList<Voice>::Iterator itLastStolenVoice;      ///< Only for voice stealing: points to the last voice which was theft in current audio fragment, NULL otherwise.
# Line 165  namespace LinuxSampler { namespace gig { Line 168  namespace LinuxSampler { namespace gig {
168              void ProcessPitchbend(Pool<Event>::Iterator& itPitchbendEvent);              void ProcessPitchbend(Pool<Event>::Iterator& itPitchbendEvent);
169              void ProcessControlChange(Pool<Event>::Iterator& itControlChangeEvent);              void ProcessControlChange(Pool<Event>::Iterator& itControlChangeEvent);
170              void ProcessSysex(Pool<Event>::Iterator& itSysexEvent);              void ProcessSysex(Pool<Event>::Iterator& itSysexEvent);
171              Pool<Voice>::Iterator LaunchVoice(Pool<Event>::Iterator& itNoteOnEvent, int iLayer = 0, bool ReleaseTriggerVoice = false, bool VoiceStealing = true);              Pool<Voice>::Iterator LaunchVoice(Pool<Event>::Iterator& itNoteOnEvent, int iLayer, bool ReleaseTriggerVoice, bool VoiceStealing);
172              void StealVoice(Pool<Event>::Iterator& itNoteOnEvent);              void StealVoice(Pool<Event>::Iterator& itNoteOnEvent);
173              void FreeVoice(Pool<Voice>::Iterator& itVoice);              void FreeVoice(Pool<Voice>::Iterator& itVoice);
174                void FreeKey(midi_key_info_t* pKey);
175              void ResetSynthesisParameters(Event::destination_t dst, float val);              void ResetSynthesisParameters(Event::destination_t dst, float val);
176              void ResetInternal();              void ResetInternal();
177    

Legend:
Removed from v.285  
changed lines
  Added in v.376

  ViewVC Help
Powered by ViewVC