MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DispatchPulse

Method DispatchPulse

Source/IPulseReceiver.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "PatchCableSource.h"
30
31void IPulseSource::DispatchPulse(PatchCableSource* destination, double time, float velocity, int flags)
32{
33 if (time == destination->GetLastOnEventTime()) //avoid stack overflow
34 return;
35
36 const std::vector<IPulseReceiver*>& receivers = destination->GetPulseReceivers();
37 destination->AddHistoryEvent(time, true, flags);
38 destination->AddHistoryEvent(time + 15, false);
39 for (auto* receiver : receivers)
40 receiver->OnPulse(time, velocity, flags);
41}

Callers

nothing calls this directly

Calls 3

AddHistoryEventMethod · 0.80
GetLastOnEventTimeMethod · 0.45
OnPulseMethod · 0.45

Tested by

no test coverage detected