Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
mock_midi_system.hpp File Reference

Scriptable in-memory MIDI backend for tests and headless hosts. More...

#include <pulp/midi/device.hpp>
#include <algorithm>
#include <memory>
#include <mutex>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  pulp::midi::MockMidiSystem

Namespaces

namespace  pulp
namespace  pulp::midi

Detailed Description

Scriptable in-memory MIDI backend for tests and headless hosts.

Ports are added and removed from code, the registered port-change callback fires on every change, and events can be injected into any open input. An input opened on a port that is removed stays "open" the way an OS handle does until the owner closes it, which is what makes stale-handle bugs reproducible.