[Bug 251125] audio/jack: update to jack2 or add new port audio/jack2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Nov 29 16:08:10 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251125

--- Comment #31 from Florian Walpen <dev at submerge.ch> ---
(In reply to Goran Mekić from comment #27)

Not sure I can follow your intentions with buffer size calculations. You omit
sample size and channel count from the fragment size calculation:

> gFragFormat = (fCaptureChannels << 16) + int2pow2(fEngineControl->fBufferSize);

You will get a much too small block size (fInputBufferSize) and recalculate the
internal number of frames (fEngineControl->fBufferSize) from that:

> int new_buffer_size = fInputBufferSize / (fSampleSize * fCaptureChannels);

And then you repeat the whole thing for the output buffers, resulting in an
even tinier fragment size and internal number of frames. This is completely
unusable and inconsistent for my setup.

Why not just set a smaller number of internal frames ("period") from the start,
and then fit the fragment size to that like it was? We are writing the whole
data in one go anyway, AFAICT.

Or what are you trying to achieve?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-multimedia mailing list