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

Fixes issue #1547 for skater and shooter demos: Segfault after failed audio subsystem installation on Linux. #1566

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tstoeter
Copy link
Contributor

No description provided.

tstoeter added 2 commits June 18, 2024 07:02
…subsystem installation on Linux.

The segfault happened in the function calls `al_reserve_samples` and `al_attach_sample_instance_to_mixer`,
which have now been guarded by `if (al_is_audio_installed())`. Potentially move this check into the body
of these functions?
… subsystem installation on Linux.

The segfault happened in the function calls `play_midi`, `al_stop_sample`, and `al_unlock_sample_id`,
which have now been guarded by `if (al_is_audio_installed())`. Potentially move this check into the body
of these functions?
@SiegeLord
Copy link
Member

Is there a desire to have the game playing in silence? We could just exit the game if audio failed to install.

@tstoeter
Copy link
Contributor Author

Of course it is only half the fun without music and sound. But I could now play the games on a computer that had no sound card installed.

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

Successfully merging this pull request may close these issues.

2 participants