Date: Sun, 29 Nov 2020 00:14:29 +0000 From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [Bug 251125] audio/jack: update to jack2 or add new port audio/jack2 Message-ID: <bug-251125-12827-lZbIopRl5a@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-251125-12827@https.bugs.freebsd.org/bugzilla/> References: <bug-251125-12827@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251125 --- Comment #22 from Hans Petter Selasky <hselasky@FreeBSD.org> --- int frag =3D (4 << 16) | 8 > Does that mean I will have 4 fragments, each 256 bytes long? Yes. > If fragment size is for example (number of channels * sample size / 2), d= o I need 2 read calls to populate the data of all channels? You should not do this. You should always write data which is modulus "chan= nels * sample_size_in_bytes". View the frag =3D (4 << 16) | 8 as an approximation. Use: SNDCTL_DSP_GETBLKSIZE To get the real blocksize used. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251125-12827-lZbIopRl5a>