/// <summary> /// Makes an access type missing from a <see cref="SoundPcmAccessMask"/> instance. /// </summary> /// <param name="val">Access to unset.</param> public void Unset(SoundPcmAccess val) { SoundNativeMethods.SoundPcmAccessMaskSet(handle, val); }
/// <summary> /// Tests the presence of an access type in a <see cref="SoundPcmAccessMask"/> instance. /// </summary> /// <returns>Value indicating </returns> public bool IsSet(SoundPcmAccess val) { return(SoundNativeMethods.SoundPcmAccessMaskTest(handle, val) == 0); }
public static string GetName(this SoundPcmAccess access) { IntPtr ptr = SoundNativeMethods.SoundPcmAccessName(access); return(Marshal.PtrToStringAnsi(ptr)); }