Log CC event even when we can't enter the callback
This commit is contained in:
parent
cf940980b4
commit
4d516768fa
1 changed files with 2 additions and 1 deletions
|
|
@ -512,6 +512,8 @@ void sfz::Synth::cc(int delay, int ccNumber, uint8_t ccValue) noexcept
|
|||
ASSERT(ccNumber < config::numCCs);
|
||||
ASSERT(ccNumber >= 0);
|
||||
|
||||
resources.midiState.ccEvent(ccNumber, ccValue);
|
||||
|
||||
AtomicGuard callbackGuard { inCallback };
|
||||
if (!canEnterCallback)
|
||||
return;
|
||||
|
|
@ -521,7 +523,6 @@ void sfz::Synth::cc(int delay, int ccNumber, uint8_t ccValue) noexcept
|
|||
return;
|
||||
}
|
||||
|
||||
resources.midiState.ccEvent(ccNumber, ccValue);
|
||||
for (auto& voice : voices)
|
||||
voice->registerCC(delay, ccNumber, ccValue);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue