[Bug 291743] Java programs cannot play sound
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 291743] Java programs cannot play sound"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Dec 2025 10:54:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291743
--- Comment #5 from Vladimir Druzenko <vvd@FreeBSD.org> ---
/usr/local/openjdk8/bin/javac play.java
$ for J in /usr/local/openjdk*; do echo ${J}; ${J}/bin/java play
/usr/local/lib/python3.11/test/audiotest.au; done
/usr/local/openjdk11
The following mixer available:
oss [default], version
/usr/local/lib/python3.11/test/audiotest.au: input format: ULAW 8012.0 Hz, 8
bit, mono, 1 bytes/frame,
/usr/local/lib/python3.11/test/audiotest.au: using format: PCM_SIGNED 8012.0
Hz, 16 bit, mono, 2 bytes/frame, little-endian
/usr/local/openjdk17
The following mixer available:
oss [default], version
/usr/local/lib/python3.11/test/audiotest.au: input format: ULAW 8012.0 Hz, 8
bit, mono, 1 bytes/frame
/usr/local/lib/python3.11/test/audiotest.au: using format: PCM_SIGNED 8012.0
Hz, 16 bit, mono, 2 bytes/frame, little-endian
/usr/local/openjdk21
The following mixer available:
oss [default], version
/usr/local/lib/python3.11/test/audiotest.au: input format: ULAW 8012.0 Hz, 8
bit, mono, 1 bytes/frame
/usr/local/lib/python3.11/test/audiotest.au: using format: PCM_SIGNED 8012.0
Hz, 16 bit, mono, 2 bytes/frame, little-endian
/usr/local/openjdk25
The following mixer available:
oss [default], version
/usr/local/lib/python3.11/test/audiotest.au: input format: ULAW 8012.0 Hz, 8
bit, mono, 1 bytes/frame
/usr/local/lib/python3.11/test/audiotest.au: using format: PCM_SIGNED 8012.0
Hz, 16 bit, mono, 2 bytes/frame, little-endian
/usr/local/openjdk8
The following mixer available:
oss [default], version
/usr/local/lib/python3.11/test/audiotest.au: input format: ULAW 8012.0 Hz, 8
bit, mono, 1 bytes/frame,
/usr/local/lib/python3.11/test/audiotest.au: using format: PCM_SIGNED 8012.0
Hz, 16 bit, mono, 2 bytes/frame, little-endian
Sound work for me for all installed JDKs.
$ pkg info | grep alsa
alsa-lib-1.2.14 ALSA compatibility library
alsa-plugins-1.2.12_1 ALSA compatibility library plugins
gstreamer1-plugins-alsa-1.26.9 GStreamer ALSA plugin
linux-c7-alsa-lib-1.1.8 Advanced Linux Sound Architecture libraries
(Linux CentOS 7.9.2009)
linux-c7-alsa-lib-devel-1.1.8 Advanced Linux Sound Architecture headers (Linux
CentOS 7.9.2009)
linux-c7-alsa-plugins-oss-1.1.6_4 OSS plugin for ALSA (Linux CentOS 7.9.2009)
linux-c7-alsa-plugins-pulseaudio-1.1.6_1 PulseAudio plugin for ALSA (Linux
CentOS 7.9.2009)
linux-c7-alsa-utils-1.1.8_1 Advanced Linux Sound Architecture utilities
(Linux CentOS 7.9.2009)
--
You are receiving this mail because:
You are the assignee for the bug.