Hi all,
I am trying to write a wrapper for OpenAL.
This is the definition of the function I want to wrap in alc.h:
...
/ ** Returns information about the device, and error strings. * /
const ALCchar* alcGetString(ALCdevice * device, ALCenum param);
...
This is the definition in OpenAL.pxd: (I wrote):
...
const ALCchar* alcGetString(ALCdevice *device, ALCenum param)
...
The error returns when I want to use this function in any file.
Usage is as follows:
cpdef defaultDevice():
return alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER)
I can't see any str. How can I see the char data returned by the
function in Python.
How can I use the data sent by the function in print ().
So I want to do this:
print(defaultDevice())
👨🦯 I’m programmer. I coding often Python, sometimes Go and rarely C++.