/// <summary> /// Initializes the device. /// </summary> private void InitializeDevice() { if (_deviceHandle != IntPtr.Zero) { return; } _disposing = false; _deviceHandle = OpenAL.alcOpenDevice(Name); Context = OpenALContext.CreateContext(_deviceHandle); SourcePool = new OpenALSourcePool(Context); }
/// <summary> /// Initializes the device. /// </summary> private void InitializeDevice() { if (_deviceHandle != IntPtr.Zero) return; _disposing = false; _deviceHandle = OpenAL.alcOpenDevice(Name); Context = OpenALContext.CreateContext(_deviceHandle); SourcePool = new OpenALSourcePool(Context); }