コード例 #1
0
 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();
 }
コード例 #2
0
 public static void alcDestroyContext(ALCcontext context) => _alcDestroyContext(context);
コード例 #3
0
 public static bool alcMakeContextCurrent(ALCcontext context) => _alcMakeContextCurrent(context);