[Bug 291743] Java programs cannot play sound
[email protected] Fri, 19 Dec 2025 09:01:24 +0000
| Newsgroups | gmane.os.freebsd.devel.java |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291743 Harald Eilertsen <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #4 from Harald Eilertsen <[email protected]> --- (In reply to Mikhail Teterin from comment #3) Hi, yes, I get the following output from jshell: % JAVA_VERSION=22 jshell | Welcome to JShell -- Version 22.0.2 | For an introduction type: /help intro jshell> javax.sound.sampled.AudioSystem.getMixerInfo(); $1 ==> Mixer$Info[1] { oss [default], version } And the test program ran and played the test file just fine: % JAVA_VERSION=22 java ./audio-test.java pure-tone.wav The following mixer available: oss [default], version pure-tone.wav: input format: PCM_SIGNED 44100.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian pure-tone.wav: using format: PCM_SIGNED 44100.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian `audio-test.java` is the file you attached to this issue. If you install alsa-utils, what is the output of `aplay -L`? And is aplay able to play any audio files? -- You are receiving this mail because: You are the assignee for the bug.