Skip to content

[OpenAL] Fix sourceSeek crash on stopped sources#26770

Open
uniformization wants to merge 1 commit intoemscripten-core:mainfrom
uniformization:main
Open

[OpenAL] Fix sourceSeek crash on stopped sources#26770
uniformization wants to merge 1 commit intoemscripten-core:mainfrom
uniformization:main

Conversation

@uniformization
Copy link
Copy Markdown

@uniformization uniformization commented Apr 24, 2026

If you tried to use AL_SEC_OFFSET on a stopped audio source, sourceSeek would throw a TypeError because audioBuf would be undefined.

@sbc100 sbc100 changed the title Fix sourceSeek crash on stopped sources [OpenAL] Fix sourceSeek crash on stopped sources Apr 24, 2026
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you maybe modify one of the existing tests in test_browser.py or test_inerative.py to cover this?

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