[Openal] I don't understand why my code wont compile
Chris Robinson
chris.kcat at gmail.com
Wed Mar 11 20:10:47 PDT 2009
On Wednesday 11 March 2009 6:11:56 pm Margin Marh wrote:
> After reading lots of Openal documents and searching the web i tough i had
> it down and went and write a little code to just play a normal .wav file.
> But aparently my code has some bugs i dont see.At first i used Openal with
> the combination of Alure, so at first i added the OpenAL32.lib and
> EFX-Util.lib then i added all the includes.
> The next step i took is to write the code, the code is located here
> http://pastebin.com/m2400889c
>
> and the error i am getting is this :
...
> I dont understand whats the problem because i made the device,the context
> and all the other openal basic requirements but i still get errors.
> Thanks in advance.
Hi.
The first two warnings are a bit odd.. I've never seen them before. The actual
errors, though, seem to be from not linking with ALURE. Did you remember to
add the lib to the link list? Note that the win32 binary package doesn't come
with import libs for MSVC. You'll either need to build one yourself, or load
the functions dynamically using LoadLibrary/GetProcAddress.
If you need code to dynamically load the functions, let me know and I'll
gladly provide some. :)
Also, you don't need EFX-Util.lib unless you plan on using the functions from
EFX-Util.h, to convert the EAX parameters to EFX. And be aware the EFX-
Util.lib is MSVC-only, so other compilers won't be able to use it.
More information about the Openal
mailing list