Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2025 09:01:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        java@FreeBSD.org
Subject:   [Bug 291743] Java programs cannot play sound
Message-ID:  <bug-291743-8522-8BndKI0cdz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-291743-8522@https.bugs.freebsd.org/bugzilla/>
References:  <bug-291743-8522@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291743

Harald Eilertsen <haraldei@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open

--- Comment #4 from Harald Eilertsen <haraldei@FreeBSD.org> ---
(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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-291743-8522-8BndKI0cdz>