netjack2: set correct max midi buffer size

It depends on the negotiated period size, not the graph quantum.
This commit is contained in:
Wim Taymans 2025-03-19 13:09:07 +01:00
parent 3be88eacb8
commit e3a068de7d

View file

@ -313,7 +313,7 @@ static void midi_to_netjack2(struct netjack2_peer *peer,
bool in_sysex = false;
buf->magic = MIDI_BUFFER_MAGIC;
buf->buffer_size = peer->quantum_limit * sizeof(float);
buf->buffer_size = peer->params.period_size * sizeof(float);
buf->nframes = n_samples;
buf->write_pos = 0;
buf->event_count = 0;