[Openal] how to get rid of alut?

Dirk noisyb at gmx.net
Tue Jun 19 18:44:02 PDT 2007


Peter Mulholland wrote:
> Hello Dirk,
> 
> Wednesday, June 20, 2007, 2:06:52 AM, you wrote:
> 
>> I try to get rid of alut... But I fail.. What is missing here? It
>> compiles but there is no sound...
> <snip>
> 
> If you get rid of ALUT you need to handle setup and takedown of OpenAL
> yourself. You need to open a device, and create a context, and then
> destroy both at the end of your program.
> 
> It's pretty easy to do, though... the sample programs should show
> this.
> 
I just figured that I removed the alutinit() and alutexit() and not
replaced them with the code inside them... :-/   ..just made this
example http://www.edenwaith.com/products/pige/tutorials/openal.php work
without alut and also fixed some minor bugs in it.. (sides were swapped
and such..) ...I'll write an audioplayer where people can adjust their
distance from the speakers and the speakers distance from each other
now... :-)

Thanks for that fast reply...

Dirk



More information about the Openal mailing list