-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[OpenAL] Fix sourceSeek crash on stopped sources #26770
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,9 @@ void playSource(void* arg) { | |
| alSourceStop(source); | ||
| alGetSourcei(source, AL_SOURCE_STATE, &state); | ||
| assert(state == AL_STOPPED); | ||
| alSourcef(source, AL_SEC_OFFSET, 0.5f); | ||
| alGetSourcei(source, AL_SOURCE_STATE, &state); | ||
| assert(state == AL_STOPPED); | ||
| #endif | ||
|
|
||
| alSourceRewindv(1, &source); | ||
|
|
@@ -69,6 +72,9 @@ void playSource(void* arg) { | |
| alSourceStopv(1, &source); | ||
| alGetSourcei(source, AL_SOURCE_STATE, &state); | ||
| assert(state == AL_STOPPED); | ||
| alSourcef(source, AL_SEC_OFFSET, 0.5f); | ||
| alGetSourcei(source, AL_SOURCE_STATE, &state); | ||
| assert(state == AL_STOPPED); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you confirm this new test fails without this patch?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me know if the fix for this is good enough or if there's a better way of going about it. When an error is thrown from a function that was called with |
||
| test_finished(); | ||
| #endif | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.