New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brew installed openjdk gives LineUnavailableException: line with format PCM_SIGNED 48000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported. #158402
Comments
I can definitively prove this. |
Could you make a pull request to add this as a test to the OpenJDK formula? That way we can ensure that it's reproducibly fixed. |
@SMillerDev Please explain what you mean. |
All I know is this: brew JDKs have broken sound on Ubuntu 22.04 LTS. |
Do you have an minimal code snippet that we can |
You could use my app:
https://github.com/pacman-admin/pacmancode/tree/master/src
(I only develop one app)
I do not know of any code snippets using the Java Clip API.
…On Wed, Jan 3, 2024 at 2:26 PM Caleb Xu ***@***.***> wrote:
@SMillerDev <https://github.com/SMillerDev> Please explain what you mean.
What does "this" refer to?
Do you have an minimal code snippet that we can javac <class name> and java
<class name> to execute and reproduce this issue? Most maintainers here
don't immediately know of a Java app off the top of their head that uses
Clip (nor are we necessarily familiar with that API), so something simple
that we can validate with would be helpful.
—
Reply to this email directly, view it on GitHub
<#158402 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4FFH4WJCFWIIQFUZ4CZME3YMWWH7AVCNFSM6AAAAABBE4L7KGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVHA2TQMZXGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Try making it into a JAr file.
It could be JAr specific.
…On Wed, Jan 3, 2024 at 5:12 PM Langdon Staab ***@***.***> wrote:
You could use my app:
https://github.com/pacman-admin/pacmancode/tree/master/src
(I only develop one app)
I do not know of any code snippets using the Java Clip API.
On Wed, Jan 3, 2024 at 2:26 PM Caleb Xu ***@***.***> wrote:
> @SMillerDev <https://github.com/SMillerDev> Please explain what you
> mean. What does "this" refer to?
>
> Do you have an minimal code snippet that we can javac <class name> and java
> <class name> to execute and reproduce this issue? Most maintainers here
> don't immediately know of a Java app off the top of their head that uses
> Clip (nor are we necessarily familiar with that API), so something simple
> that we can validate with would be helpful.
>
> —
> Reply to this email directly, view it on GitHub
> <#158402 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/A4FFH4WJCFWIIQFUZ4CZME3YMWWH7AVCNFSM6AAAAABBE4L7KGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVHA2TQMZXGE>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Yes, just use this JAr: https://raw.githubusercontent.com/pacman-admin/pacmancode/master/jar/Pac-Man.jar |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
So far, this seems to run fine on macOS using brewed openjdk (audio plays fine). I don't have a good Linux x86_64 box (with a GUI) to test on the moment. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Has anyone made any progress? |
Just tested the same JAR with Homebrew OpenJDK on my Ubuntu 23.10 x86_64 daily driver, no issues with graphics or sound, and no errors of any sort: @pacman-admin, did you update Homebrew |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Is anyone working on this?
…On Thu, Mar 28, 2024 at 8:02 PM github-actions[bot] < ***@***.***> wrote:
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.
—
Reply to this email directly, view it on GitHub
<#158402 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4FFH4QRPQWQAKYFOIJG32LY2SVQ7AVCNFSM6AAAAABBE4L7KGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGM2DMNJSHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
As you can see, nobody can reproduce the errors you're getting, so... Also, you never responded to my question from three weeks ago:
Failure to respond to questions also delays any possible resolution, for obvious reasons. Another relevant question: are any of your users experiencing the same problem? If not, that strongly suggests an issue specific to your system. |
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Play sound in a java-based game using the Java Clip API
What happened (include all command output)?
It returned this error:
javax.sound.sampled.LineUnavailableException: line with format PCM_SIGNED 48000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.
It works fine with an intellij JDK or a
What did you expect to happen?
The sound gets played like it did with a JDK from the Oracle website or on macOS or Windows.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: