Created attachment 146906 [details] Fix for problem. Hi, SNDCTL_DSP_GETBLKSIZE() is in FreeBSD a read only IOCTL. Need to use SNDCTL_DSP_SETBLKSIZE() to really set the blocksize. Thank you! --HPS
If someone has it ready for commit please just commit. ;)
source shows still int tmp_buffer_size = want_buffer_size; if (ioctl (fd, SNDCTL_DSP_GETBLKSIZE, &tmp_buffer_size) == -1) { cerr << "error " << strerror (errno) << '\n'; return; } but is this still relevant?
testbuilds@work
The patch fixes an issue, but it should go upstream I guess. I'm not using this utility at the moment, so if you want to abandon this case I'm fine. --HPS
A commit references this bug: Author: pi Date: Mon Sep 3 18:20:23 UTC 2018 New revision: 478887 URL: https://svnweb.freebsd.org/changeset/ports/478887 Log: audio/xanalyser: fix a ioctl call - SNDCTL_DSP_GETBLKSIZE() is in FreeBSD a read only ioctl() Need to use SNDCTL_DSP_SETBLKSIZE() to really set the blocksize. PR: 193373 Submitted by: hselasky Reviewed by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at> Approved by: db (maintainer) Changes: head/audio/xanalyser/Makefile
Committed, thanks
A commit references this bug: Author: pi Date: Mon Sep 3 18:21:27 UTC 2018 New revision: 478888 URL: https://svnweb.freebsd.org/changeset/ports/478888 Log: audio/xanalyser: fix a ioctl call (now for real) - SNDCTL_DSP_GETBLKSIZE() is in FreeBSD a read only ioctl() Need to use SNDCTL_DSP_SETBLKSIZE() to really set the blocksize. PR: 193373 Submitted by: hselasky Reviewed by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at> Approved by: db (maintainer) Changes: head/audio/xanalyser/files/patch-src_pcm-oss.cc