Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Classes | Functions
MIDI_Staller.hpp File Reference
#include <Settings/SettingsWrapper.hpp>
#include <AH/STL/utility>
#include <Settings/NamespaceSettings.hpp>
+ 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 that executes the given callback and deletes itself when MIDIStaller::handleStall is called.
 

Function Documentation

◆ makeMIDIStaller()

template<class Callback >
auto makeMIDIStaller ( Callback && callback) -> MIDIStaller *

Allocate a MIDIStaller that 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.