sox play mode is doing fine if you Ctrl-C before file is finished playing, if you let it finish, results to a segmentation fault when releasing the device. There is also a clip sound when taking the control of dsp when starting. It seems kernel has a problem with the current libraries (Kernel 11.0-RC3) using standard port tree (the one comes with the release).
Created attachment 188135 [details] sox.diff (In reply to Alexandros Perdikomatis from comment #0) I can confirm the segfault. Luckily there's a patch for it in pkgsrc which seems to fix the problem. I don't hear any clipping though when playback starts.
Comment on attachment 188135 [details] sox.diff This patch looks good. Maintainer approved.
A commit references this bug: Author: tobik Date: Mon Nov 20 20:34:25 UTC 2017 New revision: 454577 URL: https://svnweb.freebsd.org/changeset/ports/454577 Log: audio/sox: Fix segfault in the OSS backend sox currently crashes when it finishes playing a file. PR: 213262 Approved by: Dan Nelson <dnelson@allantgroup.com> (maintainer) Reported by: Alexandros Perdikomatis <alexandrosperdikomatis@gmail.com> Obtained from: Pkgsrc MFH: 2017Q4 Changes: head/audio/sox/Makefile head/audio/sox/files/ head/audio/sox/files/patch-src_oss.c
A commit references this bug: Author: tobik Date: Mon Nov 20 21:05:36 UTC 2017 New revision: 454580 URL: https://svnweb.freebsd.org/changeset/ports/454580 Log: MFH: r454577 audio/sox: Fix segfault in the OSS backend sox currently crashes when it finishes playing a file. PR: 213262 Approved by: Dan Nelson <dnelson@allantgroup.com> (maintainer) Reported by: Alexandros Perdikomatis <alexandrosperdikomatis@gmail.com> Obtained from: Pkgsrc Approved by: ports-secteam blanket Changes: _U branches/2017Q4/ branches/2017Q4/audio/sox/Makefile branches/2017Q4/audio/sox/files/
(In reply to Dan Nelson from comment #2) Committed. Thanks!