mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-28 21:37:33 -04:00
jack-tunnel: pass bytes to jack_to_midi
When the buffer has n_samples, we have n_samples * sizeof(float) bytes to fill with midi.
This commit is contained in:
parent
bd8eab3ffb
commit
c4b198962c
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ static void source_process(void *d, struct spa_io_position *position)
|
||||||
src = jack.port_get_buffer (p->jack_port, n_samples);
|
src = jack.port_get_buffer (p->jack_port, n_samples);
|
||||||
|
|
||||||
if (SPA_UNLIKELY(p->is_midi))
|
if (SPA_UNLIKELY(p->is_midi))
|
||||||
jack_to_midi(dst, src, n_samples);
|
jack_to_midi(dst, src, n_samples * sizeof(float));
|
||||||
else
|
else
|
||||||
do_volume(dst, src, &s->volume, i, n_samples);
|
do_volume(dst, src, &s->volume, i, n_samples);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue