-
Notifications
You must be signed in to change notification settings - Fork 122
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
Game sounds fail to load, causing a crash #1
Comments
- Explicitly supply the AudioFormat when creating a Clip. - Disable Master Gain if unsupported (e.g. in PulseAudio). - Do not try to play uninitialized sounds (e.g. LineUnavailableException during creation, seems to happen regularly with PulseAudio). Other changes: - Errors replaced with debugs in 'getTrackLength()' if audio fields inaccessible. - Do not log ThreadDeath exceptions (it's a known issue, and only clutters the log file). Signed-off-by: Jeffrey Han <[email protected]>
Does 83c475c fix the crashes? (binary here) |
Yep, that fixes it, and the sounds play. Cheers! |
Oops, spoke too soon. Now the beatmap audio doesn't play on the title screen or when I try to play a map. Previously the beatmap audio would play up until the game crashed. |
Interesting. If you look at the diff, I didn't touch MusicController (which handles beatmap audio through OpenAL). Maybe SoundController's initialization is interfering with OpenAL... anyhow, I'm really clueless about how to solve this (as I'm unable to test this myself). x.x If disabling the SoundController module altogether (i.e. deleting the code inside the init and sound-playing methods) fixes the issue, I can just write in a switch to turn off JavaSound for Linux for now. Are you able to compile the project yourself? If not, I can upload another binary for you when I get a chance. |
It could fix the issue? I can't compile it here, I don't have any Java development knowhow, so a binary would be appreciated. |
Yep, it works fine there. Strange. |
…es issue #1) - By default, sound effects will be disabled on Linux due to driver issues. Other changes: - Minor corner-case fix in song selection. (since 95f969f) Signed-off-by: Jeffrey Han <[email protected]>
This is resolved in the 0.3.1 release -- sound effects are not loaded in Linux by default, with a switch in the options in case it happens to work for somebody. I'll leave this issue open since disabling sound altogether isn't a proper fix by any means, but at least it's no longer critical. Thanks for your help! |
Full implementation of a "weighted" spinner. May need to tweak some constants to make it more like osu!
Closing this as it's pretty outdated, and #89 addresses a similar issue. |
The NullPointerException occurs when clicking on the opsu! star on the main menu, causing the game to crash (probably because it's trying to play a sound even though it failed to load?)
The text was updated successfully, but these errors were encountered: