While Creative Labs eventually moved to a proprietary license for later versions, the OpenAL 2.0.7.0
Unlike legacy versions, 2.0.7.0 can enumerate and output to any sound device—USB headsets, HDMI audio, virtual audio cables.
alGenSources(1, &src); alSourcei(src, AL_BUFFER, buf); alSource3f(src, AL_POSITION, x, y, z); alSourcePlay(src);
alDeleteSources(1, &src); alDeleteBuffers(1, &buf); alcDestroyContext(context); alcCloseDevice(device);
ALCdevice *device = alcOpenDevice(NULL); // NULL = default device if (!device) return 1; ALCcontext *context = alcCreateContext(device, NULL); alcMakeContextCurrent(context);
While Creative Labs eventually moved to a proprietary license for later versions, the OpenAL 2.0.7.0
Unlike legacy versions, 2.0.7.0 can enumerate and output to any sound device—USB headsets, HDMI audio, virtual audio cables.
alGenSources(1, &src); alSourcei(src, AL_BUFFER, buf); alSource3f(src, AL_POSITION, x, y, z); alSourcePlay(src);
alDeleteSources(1, &src); alDeleteBuffers(1, &buf); alcDestroyContext(context); alcCloseDevice(device);
ALCdevice *device = alcOpenDevice(NULL); // NULL = default device if (!device) return 1; ALCcontext *context = alcCreateContext(device, NULL); alcMakeContextCurrent(context);