Skip to content
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

[BUG] OpenAL error 40964 AL_INVALID_OPERATION #209

Open
vanlueckn opened this issue Jan 4, 2024 · 2 comments
Open

[BUG] OpenAL error 40964 AL_INVALID_OPERATION #209

vanlueckn opened this issue Jan 4, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@vanlueckn
Copy link

Describe the bug
I tried to use the new audio plugin (openal). On my system i get this error:

[ERROR]: OpenAL error 40964: 'AL_INVALID_OPERATION'
[INFO]: OpenAL Device acquired.
[ERROR]: OpenAL error 40964: 'AL_INVALID_OPERATION'

To Reproduce
Steps to reproduce the behavior:

  1. Compile Kohi
  2. Run Kohi
  3. See error in log

Expected behavior
Audio plugin should not throw this error

Screenshots
image

Desktop (please complete the following information):

  • OS: arch linux (rolling release)

Additional context

I debugged the audio plugin with a few breakpoints. The first error is issued by plugin->internal_state->device = alcOpenDevice(0);.

@vanlueckn vanlueckn added the bug Something isn't working label Jan 4, 2024
@vanlueckn
Copy link
Author

In the official example openal does not check for errors before creating the context (OpenAL Programmers Guide - see page 10.

The alGetError function of openal-soft seems to set error to AL_INVALID_OPERATION if no context was selected. OpenAL Soft is the standard openal implementation in many linux distros, this explains why the error does only appear on my system.

@travisvroman
Copy link
Owner

@vanlueckn Thanks for submitting this!

Catching up on issues - apologies for the delay! I've known about this for a while. It doesn't affect the operation of the sound, so it hasn't been a priority to fix. It is on my list to revisit though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants