Skip to content

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
@capdevon capdevon deleted the capdevon-TestDeviceDisconnect branch June 15, 2025 22:46
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