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

Game exits with error when no audio hardware available #1393

Open
DanRStevens opened this issue May 26, 2023 · 0 comments
Open

Game exits with error when no audio hardware available #1393

DanRStevens opened this issue May 26, 2023 · 0 comments

Comments

@DanRStevens
Copy link
Member

This was noticed when investigating an issue for NAS2D:

When running OPHD in a VM without audio hardware available, the game exits on startup with an error message:

Music::load() error: Unrecognized audio format


The later portion of the error comes from calling the sdl2-mixer function Mix_LoadMUS_RW, called from Music::Music:

Unrecognized audio format

This is despite the game having a fallback to MixerNull when it's unable to initialize MixerSDL.

Note that the Music class is one of the resource classes, and is unrelated to MixerSDL, even though it relies on sdl2-mixer.

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

No branches or pull requests

1 participant