60 |
// methods |
// methods |
61 |
Engine(); |
Engine(); |
62 |
~Engine(); |
~Engine(); |
|
int RenderAudio(LinuxSampler::gig::EngineChannel* pEngineChannel, uint Samples); |
|
63 |
void Connect(AudioOutputDevice* pAudioOut); |
void Connect(AudioOutputDevice* pAudioOut); |
64 |
|
|
65 |
// implementation of abstract methods derived from class 'LinuxSampler::Engine' |
// implementation of abstract methods derived from class 'LinuxSampler::Engine' |
66 |
|
virtual int RenderAudio(uint Samples); |
67 |
virtual void SendSysex(void* pData, uint Size); |
virtual void SendSysex(void* pData, uint Size); |
68 |
virtual void Reset(); |
virtual void Reset(); |
69 |
virtual void Enable(); |
virtual void Enable(); |
98 |
float* pSynthesisParameters[Event::destination_count]; ///< Matrix with final synthesis parameters for the current audio fragment which will be used in the main synthesis loop. |
float* pSynthesisParameters[Event::destination_count]; ///< Matrix with final synthesis parameters for the current audio fragment which will be used in the main synthesis loop. |
99 |
biquad_param_t* pBasicFilterParameters; ///< Biquad parameters of the basic bandpass filter. |
biquad_param_t* pBasicFilterParameters; ///< Biquad parameters of the basic bandpass filter. |
100 |
biquad_param_t* pMainFilterParameters; ///< Main biquad parameters of the individual filter (lowpass / bandpass / highpass). |
biquad_param_t* pMainFilterParameters; ///< Main biquad parameters of the individual filter (lowpass / bandpass / highpass). |
101 |
int ActiveVoiceCount; ///< number of currently active voices |
int ActiveVoiceCount; ///< number of currently active voices (this value will be returned for public calls) |
102 |
|
int ActiveVoiceCountTemp; ///< number of currently active voices (for internal usage, will be used for incrementation) |
103 |
int ActiveVoiceCountMax; ///< the maximum voice usage since application start |
int ActiveVoiceCountMax; ///< the maximum voice usage since application start |
104 |
bool SuspensionRequested; |
bool SuspensionRequested; |
105 |
ConditionServer EngineDisabled; |
ConditionServer EngineDisabled; |
106 |
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 |
|
RTList<Voice>::Iterator itLastStolenVoice; ///< Only for voice stealing: points to the last voice which was theft in current audio fragment, NULL otherwise. |
|
|
RTList<uint>::Iterator iuiLastStolenKey; ///< Only for voice stealing: key number of last key on which the last voice was theft in current audio fragment, NULL otherwise. |
|
107 |
int MaxFadeOutPos; ///< The last position in an audio fragment to allow an instant fade out (e.g. for voice stealing) without leading to clicks. |
int MaxFadeOutPos; ///< The last position in an audio fragment to allow an instant fade out (e.g. for voice stealing) without leading to clicks. |
108 |
|
|
109 |
|
void RenderAudio(EngineChannel* pEngineChannel, uint Samples); |
110 |
|
void ClearEventLists(); |
111 |
|
void ImportEvents(RingBuffer<Event>* pEventQueue, uint Samples); |
112 |
void ProcessNoteOn(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNoteOnEvent); |
void ProcessNoteOn(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNoteOnEvent); |
113 |
void ProcessNoteOff(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNoteOffEvent); |
void ProcessNoteOff(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNoteOffEvent); |
114 |
void ProcessPitchbend(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itPitchbendEvent); |
void ProcessPitchbend(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itPitchbendEvent); |
133 |
friend class VCFCManipulator; |
friend class VCFCManipulator; |
134 |
friend class VCOManipulator; |
friend class VCOManipulator; |
135 |
private: |
private: |
136 |
std::list<EngineChannel*> samplerChannels; ///< All sampler channels of a gig::Engine instance. |
std::list<EngineChannel*> engineChannels; ///< All engine channels of a gig::Engine instance. |
137 |
|
|
138 |
static std::map<AudioOutputDevice*,Engine*> engines; ///< All instances of gig::Engine. |
static std::map<AudioOutputDevice*,Engine*> engines; ///< All instances of gig::Engine. |
139 |
|
|