public AudioDevice() { _device = alcOpenDevice(null); _context = alcCreateContext(_device, null); alcMakeContextCurrent(_context); alHandleError("failed to setup open al context: "); if (alcIsExtensionPresent(_device, "ALC_EXT_EFX") == false) { throw new NotSupportedException("your system does not support open al efx extension"); } alHandleError("failed to setup open al: "); UpdateDistanceModel(); UpdateSpeedOfSound(); }
public static void alcDestroyContext(ALCcontext context) => _alcDestroyContext(context);
public static bool alcMakeContextCurrent(ALCcontext context) => _alcMakeContextCurrent(context);