Date: Wed, 17 Dec 2025 17:42:23 +0000 From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 291743] Java programs cannot play sound Message-ID: <bug-291743-8522@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291743 Bug ID: 291743 Summary: Java programs cannot play sound Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: java@FreeBSD.org Reporter: mi@FreeBSD.org Attachment #266295 text/plain mime type: Created attachment 266295 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266295&action=edit The test program On different systems, using different JDK-versions -- from 8 to 23 -- the symptoms are the same: javax.sound.sampled.AudioSystem.getMixerInfo() returns an empty list despite multiple audio systems listed in /dev/sndstat -- and the audio, indeed, working for applications like Firefox and MPlayer. Running the attached simple program under ktrace, I see attempts to open non-existent Linux-type devices like /dev/snd/controlC* and /dev/aloadC*, which do not exist -- but not the actual /dev/dsp*! For JDKs above 8, you can just use jshell -- without compiling my test-program: % env JAVA_VERSION=22 jshell --show-version jshell 22.0.2 | Welcome to JShell -- Version 22.0.2 | For an introduction type: /help intro jshell> javax.sound.sampled.AudioSystem.getMixerInfo(); $1 ==> Mixer$Info[0] { } Many years ago, when I was using the games/jin port, this was not a problem -- the game was playing its sounds at the right moments. (P.S. An attempt to reach the ports' maintainers directly bounced: "... was unable to be delivered to the list because you are not a list subscriber", which is a problem in its own right.) --- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> --- Maintainer informed via mail -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-291743-8522>
