178 |
return (bMidiRpnReceived) ? (uiMidiRpnMsb << 8) | uiMidiRpnLsb : -1; |
return (bMidiRpnReceived) ? (uiMidiRpnMsb << 8) | uiMidiRpnLsb : -1; |
179 |
} |
} |
180 |
|
|
181 |
|
void EngineChannel::AddFxSendCountListener(FxSendCountListener* l) { |
182 |
|
llFxSendCountListeners.AddListener(l); |
183 |
|
} |
184 |
|
|
185 |
|
void EngineChannel::RemoveFxSendCountListener(FxSendCountListener* l) { |
186 |
|
llFxSendCountListeners.RemoveListener(l); |
187 |
|
} |
188 |
|
|
189 |
|
void EngineChannel::RemoveAllFxSendCountListeners() { |
190 |
|
llFxSendCountListeners.RemoveAllListeners(); |
191 |
|
} |
192 |
|
|
193 |
|
void EngineChannel::fireFxSendCountChanged(int ChannelId, int NewCount) { |
194 |
|
for (int i = 0; i < llFxSendCountListeners.GetListenerCount(); i++) { |
195 |
|
llFxSendCountListeners.GetListener(i)->FxSendCountChanged(ChannelId, NewCount); |
196 |
|
} |
197 |
|
} |
198 |
|
|
199 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |