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

Add runtime library checks #3

Open
GWRon opened this issue Mar 21, 2019 · 2 comments
Open

Add runtime library checks #3

GWRon opened this issue Mar 21, 2019 · 2 comments

Comments

@GWRon
Copy link

GWRon commented Mar 21, 2019

Is it possible to prepend some runtime library checks?

Why? rtAudio seems (at least on linux) to always (tries to) load pulseaudio-libs. On a particular (heavy) TVTower user's "Knoppix" (a linux distribution) there is no pulseaudio installed (and he never was able to install it...).
All normal builds crash on this computer installation as rtAudio tries to load a lib which is not available.

I think it would be pretty cool if it checked "during runtime" if lib loading was successful and if not - just tries the next (eg. Alsa or the now deprecated OSS).

Think You ( @woollybah ) already tried something regarding this some many months ago but as it seems still to be a problem ... I thought I better open up a new issue

@woollybah
Copy link
Member

It's doable. Basically, it would work in the same way as you create Global function pointers for DLL functions in BlitzMax. Plus a bit where it attempts to load the shared object.

@GWRon
Copy link
Author

GWRon commented Mar 21, 2019

I am sure you already tried (many months ago) so I am sure that the library and the way it handles stuff puts some spanners in the works.

Just to get you right - so the basic idea is to have some "function pointers leading to nowhere" - and if the library could be loaded, these functions were filled with life (their pointers target the real library functions)?
So it might even be better to have function pointers leading to "stub functions" (null audio or so) as default?

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

2 participants