public Context(Device device) : this() { if (device == Device.Null) { throw new ArgumentNullException("device"); } unsafe { Handle = Alc.CreateContext(device.Handle, null); AlHelper.GetAlcError(Alc.GetError(device.Handle)); } }
public void Stop() { AlHelper.ThrowNullException(Handle); Alc.CaptureStop(Handle); AlHelper.GetAlcError(Alc.GetError(Handle)); }