42 |
uiMidiProgram = 0; |
uiMidiProgram = 0; |
43 |
bProgramChangeReceived = bMidiBankMsbReceived = bMidiBankLsbReceived = false; |
bProgramChangeReceived = bMidiBankMsbReceived = bMidiBankLsbReceived = false; |
44 |
iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP; |
iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP; |
45 |
uiVoiceCount = 0; |
SetVoiceCount(0); |
46 |
uiDiskStreamCount = 0; |
SetDiskStreamCount(0); |
47 |
pSamplerChannel = NULL; |
pSamplerChannel = NULL; |
48 |
ResetMidiRpnController(); |
ResetMidiRpnController(); |
49 |
} |
} |
191 |
} |
} |
192 |
|
|
193 |
uint EngineChannel::GetVoiceCount() { |
uint EngineChannel::GetVoiceCount() { |
194 |
return uiVoiceCount; |
return atomic_read(&voiceCount); |
195 |
} |
} |
196 |
|
|
197 |
void EngineChannel::SetVoiceCount(uint Voices) { |
void EngineChannel::SetVoiceCount(uint Voices) { |
198 |
uiVoiceCount = Voices; |
atomic_set(&voiceCount, Voices); |
199 |
} |
} |
200 |
|
|
201 |
uint EngineChannel::GetDiskStreamCount() { |
uint EngineChannel::GetDiskStreamCount() { |
202 |
return uiDiskStreamCount; |
return atomic_read(&diskStreamCount); |
203 |
} |
} |
204 |
|
|
205 |
void EngineChannel::SetDiskStreamCount(uint Streams) { |
void EngineChannel::SetDiskStreamCount(uint Streams) { |
206 |
uiDiskStreamCount = Streams; |
atomic_set(&diskStreamCount, Streams); |
207 |
} |
} |
208 |
|
|
209 |
SamplerChannel* EngineChannel::GetSamplerChannel() { |
SamplerChannel* EngineChannel::GetSamplerChannel() { |