25 |
|
|
26 |
#include <algorithm> |
#include <algorithm> |
27 |
|
|
28 |
|
#include "../Sampler.h" |
29 |
#include "../common/global_private.h" |
#include "../common/global_private.h" |
30 |
#include "../drivers/midi/MidiInstrumentMapper.h" |
#include "../drivers/midi/MidiInstrumentMapper.h" |
31 |
|
|
44 |
iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP; |
iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP; |
45 |
uiVoiceCount = 0; |
uiVoiceCount = 0; |
46 |
uiDiskStreamCount = 0; |
uiDiskStreamCount = 0; |
47 |
|
pSamplerChannel = NULL; |
48 |
ResetMidiRpnController(); |
ResetMidiRpnController(); |
49 |
} |
} |
50 |
|
|
205 |
void EngineChannel::SetDiskStreamCount(uint Streams) { |
void EngineChannel::SetDiskStreamCount(uint Streams) { |
206 |
uiDiskStreamCount = Streams; |
uiDiskStreamCount = Streams; |
207 |
} |
} |
208 |
|
|
209 |
|
SamplerChannel* EngineChannel::GetSamplerChannel() { |
210 |
|
if(pSamplerChannel == NULL) { |
211 |
|
std::cerr << "EngineChannel::GetSamplerChannel(): pSamplerChannel is NULL, this is a bug!\n" << std::flush; |
212 |
|
} |
213 |
|
return pSamplerChannel; |
214 |
|
} |
215 |
|
|
216 |
|
void EngineChannel::SetSamplerChannel(SamplerChannel* pChannel) { |
217 |
|
pSamplerChannel = pChannel; |
218 |
|
} |
219 |
|
|
220 |
|
Sampler* EngineChannel::GetSampler() { |
221 |
|
if (GetSamplerChannel() == NULL) return NULL; |
222 |
|
return GetSamplerChannel()->GetSampler(); |
223 |
|
} |
224 |
|
|
225 |
void EngineChannel::AddFxSendCountListener(FxSendCountListener* l) { |
void EngineChannel::AddFxSendCountListener(FxSendCountListener* l) { |
226 |
llFxSendCountListeners.AddListener(l); |
llFxSendCountListeners.AddListener(l); |