You can replace alutInit in your
code with this:
ALCdevice *device = alcOpenDevice(NULL);
ALCcontext *context = alcCreateContext(device, NULL);
alcMakeContextCurrent(context);
And you can replace alutExit with this:
ALCcontext *context = alcGetCurrentContext();
ALCdevice *device = alcGetContextsDevice(context);
alcDestroyContext(context);
alcCloseDevice(device);
Thank you very much. I got it to work just like I wanted it to.
Thank You,
Ben Pazolli