Skip to content

Commit

Permalink
- fixed hanging notes & other MIDI related hiccups on release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
christoph-hart committed May 5, 2019
1 parent d95e633 commit 8955b13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hi_sampler/sampler/ModulatorSamplerSound.cpp
Expand Up @@ -657,7 +657,7 @@ var ModulatorSamplerSound::getSampleProperty(const Identifier& id) const
// ====================================================================================================================

ModulatorSamplerSoundPool::ModulatorSamplerSoundPool(MainController *mc_, FileHandlerBase* handler) :
PoolBase(mc, handler),
PoolBase(mc_, handler),
mc(mc_),
debugProcessor(nullptr),
mainAudioProcessor(nullptr),
Expand Down
5 changes: 4 additions & 1 deletion hi_tools/hi_tools/HiseEventBuffer.cpp
Expand Up @@ -711,7 +711,10 @@ void EventIdHandler::handleEventIds()
jassert(!m->isArtificial());

if (m->isAllNotesOff())
{
memset(realNoteOnEvents, 0, sizeof(HiseEvent) * 128 * 16);
overlappingNoteOns.clear();
}

if (m->isNoteOn())
{
Expand Down Expand Up @@ -864,4 +867,4 @@ HiseEvent EventIdHandler::popNoteOnFromEventId(uint16 eventId)
}


} // namespace hise
} // namespace hise
2 changes: 1 addition & 1 deletion hi_tools/hi_tools/HiseEventBuffer.h
Expand Up @@ -465,7 +465,7 @@ class HiseEvent
uint16 eventId = 0; // DWord 3
uint16 startOffset = 0;

uint32 timestamp;
uint32 timestamp = 0;
};

#define HISE_EVENT_BUFFER_SIZE 256
Expand Down

0 comments on commit 8955b13

Please sign in to comment.