Jack2 1.9.6
|
#include <JackNetTool.h>
Public Member Functions | |
NetMidiBuffer (session_params_t *params, uint32_t nports, char *net_buffer) | |
void | Reset () |
size_t | GetSize () |
void | DisplayEvents () |
int | RenderFromJackPorts () |
int | RenderToJackPorts () |
int | RenderFromNetwork (int subcycle, size_t copy_size) |
int | RenderToNetwork (int subcycle, size_t total_size) |
void | SetBuffer (int index, JackMidiBuffer *buffer) |
JackMidiBuffer * | GetBuffer (int index) |
Midi buffer and operations class
This class is a toolset to manipulate Midi buffers. A JackMidiBuffer has a fixed size, which is the same than an audio buffer size. An intermediate fixed size buffer allows to uninterleave midi data (from jack ports). But for a big majority of the process cycles, this buffer is filled less than 1%, Sending over a network 99% of useless data seems completely unappropriate. The idea is to count effective midi data, and then send the smallest packet we can. To do it, we use an intermediate buffer. We have two methods to convert data from jack ports to intermediate buffer, And two others to convert this intermediate buffer to a network buffer (header + payload data)
Definition at line 220 of file JackNetTool.h.