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

Initialize only adrivers based on actual needs #218

Closed
derselbst opened this issue Oct 1, 2017 · 0 comments · Fixed by #264
Closed

Initialize only adrivers based on actual needs #218

derselbst opened this issue Oct 1, 2017 · 0 comments · Fixed by #264
Milestone

Comments

@derselbst
Copy link
Member

As reported by @ReinholdH:

Buggy soundcard drivers have caused portaudio to segfault. If fluidsynth is compiled with support for portaudio it will always attempt to Pa_Initialize() within new_fluid_settings() (even if the user doesnt want to use portaudio) and thus causing fluidsynth to crash as well as any application using fluidsynth.

Thus introduce the ability to register only certain audio drivers based on acutal needs. Achieve this similar to other projects (like FFMpeg) by introducing

int fluid_register_adriver(...)

which can be called once after fluidsynths startup to register audio driver that shall be usable throughout fluidsynths lifetime. If this function is not being called, all available audio drivers are registered by default.

If possible, have this functionality for the next maintenance release, else for the next major one.

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

Successfully merging a pull request may close this issue.

1 participant