mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
netjack2: set correct max midi buffer size
It depends on the negotiated period size, not the graph quantum.
This commit is contained in:
parent
3be88eacb8
commit
e3a068de7d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue