Skip to content

Commit

Permalink
Only for active cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Oct 18, 2024
1 parent 3575bdd commit 378940b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/sst/voicemanager/managers/polymanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ template <typename Cfg, typename VoiceResponder, typename MonoResponder> struct
{
for (auto &vi : voiceInfo)
{
if (vi.port == port && vi.channel == channel && vi.gated)
if (vi.activeVoiceCookie && vi.port == port && vi.channel == channel && vi.gated)
{
responder.setVoiceMIDIMPETimbre(vi.activeVoiceCookie, val);
}
Expand All @@ -394,7 +394,7 @@ template <typename Cfg, typename VoiceResponder, typename MonoResponder> struct
{
for (auto &vi : voiceInfo)
{
if (vi.port == port && vi.channel == channel && vi.gated)
if (vi.activeVoiceCookie && vi.port == port && vi.channel == channel && vi.gated)
{
responder.setVoiceMIDIMPEChannelPressure(vi.activeVoiceCookie, val);
}
Expand Down

0 comments on commit 378940b

Please sign in to comment.