-
Notifications
You must be signed in to change notification settings - Fork 345
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
Error Generating OpenAL Hardware buffer when all audio devices are disabled #292
Comments
(Update: ah, much better :)) |
Sorry, I fat fingered a submit on the bug. |
Lemme know if you can't get a repro. |
no worries :) I think I have an idea for a workaround (ok, two actually), but I gotta go to bed before I get around to implementing it (and building fresh Windows binaries for you to test). |
I only found this issue because I was using a Bluetooth headset that would go into sleep mode and disconnect from my computer. Reconnecting a device solves the issue. |
No, I mean a workaround in the code ;) |
idSoundSystemLocal::Init() didn't consider the case that opening the default device (alcOpenDevice(NULL)) could fail, but this can happen if no audio devices exist (or all are disabled or they're sleeping bluetooth headphones or whatever). Starting a map failed then with ERROR: idSoundCache: error generating OpenAL hardware buffer Now this and "s_noSound 1" are handled the same and one can play.
idSoundSystemLocal::Init() didn't consider the case that opening the default device (alcOpenDevice(NULL)) could fail, but this can happen if no audio devices exist (or all are disabled or they're sleeping bluetooth headphones or whatever). Starting a map failed then with ERROR: idSoundCache: error generating OpenAL hardware buffer Now this and "s_noSound 1" are handled the same and one can play.
I think I fixed this issue, and also #209 and #291. |
These fixes are in master, but I have another OpenAL related fix that needs testing, see #296 There you can also get Windows binaries for testing that include all the OpenAL fixes of the build linked above, the aforementioned timing fix and latest changes from master. |
Okay, I'll try to give this a look tonight. |
This is confirmed fixed. |
Great, thanks for testing! |
idSoundSystemLocal::Init() didn't consider the case that opening the default device (alcOpenDevice(NULL)) could fail, but this can happen if no audio devices exist (or all are disabled or they're sleeping bluetooth headphones or whatever). Starting a map failed then with ERROR: idSoundCache: error generating OpenAL hardware buffer Now this and "s_noSound 1" are handled the same and one can play.
On Windows 10 64-bit disabling all audio devices will prevent maps from loading and an error will be generated.
stdout.txt
Repro steps:
Notes: using the console command "map mapname" will also generate an error.
The text was updated successfully, but these errors were encountered: