Esempio n. 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();
 }
Esempio n. 2
0
 public static string alcGetString(ALCdevice device, int param) => new string(_alcGetString(device, param));
Esempio n. 3
0
 public static void alcGetIntegerv(ALCdevice device, int param, int[] values) => _alcGetIntegerv(device, param, values.Length, values);
Esempio n. 4
0
 public static bool alcIsExtensionPresent(ALCdevice device, string extension) => _alcIsExtensionPresent(device, extension);
Esempio n. 5
0
 public static ALCcontext alcCreateContext(ALCdevice device, int[] attributes) => _alcCreateContext(device, attributes);
Esempio n. 6
0
 public static bool alcCloseDevice(ALCdevice device) => _alcCloseDevice(device);