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

Joins the buffers a driver returns for one long System Exclusive message. More...

#include <cstddef>
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

class  pulp::midi::SysexChunkAssembler

Namespaces

namespace  pulp
namespace  pulp::midi

Detailed Description

Joins the buffers a driver returns for one long System Exclusive message.

The classic Windows multimedia input hands back a receive buffer when it is full or when the closing F7 arrives. A message longer than one buffer therefore comes back as several buffers: the first starts with F0, the rest are continuation bytes, and only the last ends with F7. Delivering each buffer on its own would split one message into fragments, so the assembler holds bytes until the F7 shows up.