26 |
|
|
27 |
#include "../../common/global.h" |
#include "../../common/global.h" |
28 |
|
|
29 |
#if DEBUG_HEADERS |
#include <gig.h> |
|
# warning Voice.h included |
|
|
#endif // DEBUG_HEADERS |
|
30 |
|
|
31 |
#include "../../common/RTMath.h" |
#include "../../common/RTMath.h" |
32 |
#include "../../common/RingBuffer.h" |
#include "../../common/RingBuffer.h" |
33 |
#include "../../common/Pool.h" |
#include "../../common/Pool.h" |
34 |
#include "../../drivers/audio/AudioOutputDevice.h" |
#include "../../drivers/audio/AudioOutputDevice.h" |
|
#include "../../lib/fileloader/libgig/gig.h" |
|
35 |
#include "../common/BiquadFilter.h" |
#include "../common/BiquadFilter.h" |
36 |
//#include "EngineGlobals.h" |
//#include "EngineGlobals.h" |
37 |
#include "Engine.h" |
#include "Engine.h" |
88 |
void SetEngine(Engine* pEngine); |
void SetEngine(Engine* pEngine); |
89 |
int Trigger(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNoteOnEvent, int PitchBend, ::gig::Instrument* pInstrument, int iLayer, bool ReleaseTriggerVoice, bool VoiceStealingAllowed); |
int Trigger(EngineChannel* pEngineChannel, Pool<Event>::Iterator& itNoteOnEvent, int PitchBend, ::gig::Instrument* pInstrument, int iLayer, bool ReleaseTriggerVoice, bool VoiceStealingAllowed); |
90 |
inline bool IsActive() { return PlaybackState; } |
inline bool IsActive() { return PlaybackState; } |
91 |
|
inline bool IsStealable() { return !itKillEvent && PlaybackState >= playback_state_ram; } |
92 |
//private: |
//private: |
93 |
// Types |
// Types |
94 |
enum playback_state_t { |
enum playback_state_t { |
95 |
playback_state_end = 0, |
playback_state_end = 0, |
96 |
playback_state_ram = 1, |
playback_state_init = 1, |
97 |
playback_state_disk = 2 |
playback_state_ram = 2, |
98 |
|
playback_state_disk = 3 |
99 |
}; |
}; |
100 |
|
|
101 |
// Attributes |
// Attributes |