Control Surface master
MIDI Control Surface library for Arduino
Classes | Functions
MIDI_Staller.hpp File Reference
#include <AH/Settings/Warnings.hpp>
#include <Settings/NamespaceSettings.hpp>
#include <AH/STL/utility>
+ Include dependency graph for MIDI_Staller.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MIDIStaller
 Struct that can cause a MIDI_Pipe to be stalled. More...
 

Functions

template<class Callback >
auto makeMIDIStaller (Callback &&callback) -> MIDIStaller *
 Allocate a MIDIStaller executes the given callback and deletes itself when MIDIStaller::handleStall is called. More...
 

Function Documentation

◆ makeMIDIStaller()

auto makeMIDIStaller ( Callback &&  callback) -> MIDIStaller *

Allocate a MIDIStaller executes the given callback and deletes itself when MIDIStaller::handleStall is called.

Note
Don't lose the pointer! If you never call handleStall, the memory won't be deallocated.

Definition at line 30 of file MIDI_Staller.hpp.