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

Can't play audio with OpenAL #228

Closed
octylFractal opened this issue Sep 6, 2016 · 8 comments
Closed

Can't play audio with OpenAL #228

octylFractal opened this issue Sep 6, 2016 · 8 comments

Comments

@octylFractal
Copy link
Contributor

octylFractal commented Sep 6, 2016

I have this OpenAL code that I am 95% certain worked before, and it looks just like any tutorial I can find, but right now it's not working. Here's the code and a test file: https://gist.github.com/kenzierocks/294f3a9386771e5d63d1f87b0ae2cbe7.

Operating System: macOS Sierra 10.12 (Beta 7)
LWJGL: 3.0.1 build 17

Edit: Update RAW file to have correct data (pcm_s16be).

@Spasi
Copy link
Member

Spasi commented Sep 6, 2016

This has been fixed in build 18. See this comment for details.

@octylFractal
Copy link
Contributor Author

Interesting, I updated and I'm still getting this problem. I'll poke around with it some more.

@octylFractal
Copy link
Contributor Author

Ok, I copied the code reported in that comment, and I'm still getting 0s with build 18. Looks like it didn't get fully fixed somehow?

@Spasi
Copy link
Member

Spasi commented Sep 6, 2016

I cannot reproduce any issues with build 18. A couple of things that might help:

  • Post a complete, but minimal code sample that reproduces the issue for you.
  • Run export ALSOFT_LOGLEVEL=3 and run your code with -Dorg.lwjgl.util.Debug=true. Post the output here.

@octylFractal
Copy link
Contributor Author

Here's a program that prints all 0s for me, and no errors: https://gist.github.com/kenzierocks/ca114ad0f10bf248a3f134c95bf74e33.

Here's the log from that program: https://gist.github.com/kenzierocks/33bfb80d1f9a449b757fbc15ad74be09

@octylFractal
Copy link
Contributor Author

I just built a fresh copy of openal-soft and loaded it instead of the packaged one, and it was fine. So I have a workaround for now.

@Spasi
Copy link
Member

Spasi commented Sep 6, 2016

Looks like the issue was just fixed.

@octylFractal
Copy link
Contributor Author

Ah, I see. I'll use my workaround until the next build then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants