Skip to content

jme3-examples: add TestDeviceDisconnect class #2433

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

Merged

Conversation

capdevon
Copy link
Contributor

@capdevon capdevon commented May 8, 2025

This test demonstrates that destroying and recreating the OpenAL Context upon device disconnection is suboptimal. As evidenced, looping AudioNode instances stop playing after disconnection and require manual restarting. This test solely highlights this issue, which warrants a more robust solution within the ALAudioRenderer class in a future Git pull request.

We could look at libGDX's approach to these problems

https://github.com/libgdx/libgdx/blob/master/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/audio/OpenALLwjgl3Audio.java#L128

Edit:
Maybe it's best to close this PR and open an Issue with the code so we can reproduce, test, and potentially fix it.

@yaRnMcDonuts yaRnMcDonuts added this to the v3.9.0 milestone May 9, 2025
@yaRnMcDonuts yaRnMcDonuts merged commit 9e2a2ef into jMonkeyEngine:master May 15, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants