Comments (2)
Hi. You need to call alcGetProcAddress(NULL, "alsoft_set_log_callback")
to get the function dynamically, to avoid failures when attempting to loading the library in case it doesn't exist. An app can still work fine if the function doesn't exist, since it just means your callback won't be called with messages to log.
typedef void (ALC_APIENTRY*LPALSOFTLOGCALLBACK)(void *userptr, char level, const char *message, int length) ALC_API_NOEXCEPT17;
void (ALC_APIENTRY *p_alsoft_set_log_callback)(LPALSOFTLOGCALLBACK callback, void *userptr) ALC_API_NOEXCEPT17;
...
p_alsoft_set_log_callback = alcGetProcAddress(NULL, "alsoft_set_log_callback");
if(p_alsoft_set_log_callback)
p_alsoft_set_log_callback(...);
from openal-soft.
thank you very match!
from openal-soft.
Related Issues (20)
- undefined hardware_destructive_interference_size HOT 5
- Calling alGetError after dynamically loading Win64/soft_oal.dll procs returns 0xA004 (AL_INVALID_OPERATION) HOT 2
- PFFFT compile failure in Windows ARM64 HOT 2
- Error when opening a device with multiple devices HOT 4
- Sending multichannel samples directly to speakers HOT 2
- [question] about loading "AL_EXT_direct_context" functions (posted here because openal.org mailing list is dead apparently) HOT 2
- [Question]Obtaining Ambisonic output in Windows HOT 12
- Muffled sound with Cubic resampler ever since using Gaussian filter. HOT 6
- [Possibly bug] Failed to compile on GCC 8.3.0 HOT 5
- New language binding: Freepascal/Lazarus
- Eager detection and usage of sndio can be problematic on Linux HOT 7
- Build failure when compiling as a CMake subdirectory with MinGW. HOT 1
- [Question] Is there any reason why SND_PCM_STATE_PRIVATE1 enumeration value unhandled? HOT 2
- [Suggestion] add airtable HRTF database link HOT 1
- No matching function for call HOT 2
- Looping sound won't stop mid-loop
- [Question] Idea of splitting the output channel; is this possible in the current API? HOT 1
- Support for XAudio2 via the Wine-4.2 compatibility layer HOT 10
- [Question] 16 speakers in Windows using AmbiSonics (without HDMI and Receiver) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openal-soft.