29 |
#include "../../common/RingBuffer.h" |
#include "../../common/RingBuffer.h" |
30 |
#include "../../common/ArrayList.h" |
#include "../../common/ArrayList.h" |
31 |
#include "../../drivers/audio/AudioChannel.h" |
#include "../../drivers/audio/AudioChannel.h" |
|
#include "../../drivers/midi/VirtualMidiDevice.h" |
|
32 |
#include "EngineGlobals.h" |
#include "EngineGlobals.h" |
33 |
#include "Engine.h" |
#include "Engine.h" |
34 |
#include "Voice.h" |
#include "Voice.h" |
65 |
virtual bool StatusChanged(bool bNewStatus = false); |
virtual bool StatusChanged(bool bNewStatus = false); |
66 |
virtual float Volume(); |
virtual float Volume(); |
67 |
virtual void Volume(float f); |
virtual void Volume(float f); |
68 |
|
virtual float Pan(); |
69 |
|
virtual void Pan(float f); |
70 |
virtual uint Channels(); |
virtual uint Channels(); |
71 |
virtual void Connect(AudioOutputDevice* pAudioOut); |
virtual void Connect(AudioOutputDevice* pAudioOut); |
72 |
virtual void DisconnectAudioOutputDevice(); |
virtual void DisconnectAudioOutputDevice(); |
87 |
virtual FxSend* GetFxSend(uint FxSendIndex); |
virtual FxSend* GetFxSend(uint FxSendIndex); |
88 |
virtual uint GetFxSendCount(); |
virtual uint GetFxSendCount(); |
89 |
virtual void RemoveFxSend(FxSend* pFxSend); |
virtual void RemoveFxSend(FxSend* pFxSend); |
90 |
|
virtual void Connect(VirtualMidiDevice* pDevice); |
91 |
|
virtual void Disconnect(VirtualMidiDevice* pDevice); |
92 |
|
|
93 |
// implementation of abstract methods derived from interface class 'InstrumentConsumer' |
// implementation of abstract methods derived from interface class 'InstrumentConsumer' |
94 |
virtual void ResourceToBeUpdated(::gig::Instrument* pResource, void*& pUpdateArg); |
virtual void ResourceToBeUpdated(::gig::Instrument* pResource, void*& pUpdateArg); |
95 |
virtual void ResourceUpdated(::gig::Instrument* pOldResource, ::gig::Instrument* pNewResource, void* pUpdateArg); |
virtual void ResourceUpdated(::gig::Instrument* pOldResource, ::gig::Instrument* pNewResource, void* pUpdateArg); |
96 |
virtual void OnResourceProgress(float fProgress); |
virtual void OnResourceProgress(float fProgress); |
97 |
|
|
|
void Connect(VirtualMidiDevice* pDevice); |
|
|
void Disconnect(VirtualMidiDevice* pDevice); |
|
|
|
|
98 |
//protected: |
//protected: |
99 |
Engine* pEngine; |
Engine* pEngine; |
100 |
AudioChannel* pChannelLeft; ///< encapsulates the audio rendering buffer (left) |
AudioChannel* pChannelLeft; ///< encapsulates the audio rendering buffer (left) |
131 |
bool bStatusChanged; ///< true in case an engine parameter has changed (e.g. new instrument, another volumet) |
bool bStatusChanged; ///< true in case an engine parameter has changed (e.g. new instrument, another volumet) |
132 |
std::vector<FxSend*> fxSends; |
std::vector<FxSend*> fxSends; |
133 |
int GlobalTranspose; ///< amount of semi tones all notes should be transposed |
int GlobalTranspose; ///< amount of semi tones all notes should be transposed |
134 |
|
int iLastPanRequest; ///< just for the return value of Pan(), so we don't have to make an injective function |
135 |
|
|
136 |
/// Command used by the instrument loader thread to |
/// Command used by the instrument loader thread to |
137 |
/// request an instrument change on a channel. |
/// request an instrument change on a channel. |