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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Dec 4 21:20:44 UTC 2020


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

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

For testing I would just replace the SNDCTL_DSP_SETFRAGMENT ioctl with
SNDCTL_DSP_SETBLKSIZE using fInputBufferSize as parameter. You can see in the
jack output whether the fragment size is set to the requested 512 * 18 * 4 or
rounded to a different size. If it is the requested size, test again for
glitches, otherwise I don't see any use in it.

For an actual FreeBSD-specific implementation we could maybe:
1. Set SNDCTL_DSP_SETBLKSIZE
2. Check the result with SNDCTL_DSP_GETBLKSIZE
3. If not the requested size, use SNDCTL_DSP_SETFRAGMENT with 4 or 8 fragments

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


More information about the freebsd-multimedia mailing list