public long GetInteger64(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementValueGetInteger64(handle, idx));
 }
Example #2
0
 public uint GetDevice()
 {
     return(SoundNativeMethods.SoundPcmInfoGetDevice(handle));
 }
Example #3
0
 public int ReadTLVFromElement(SoundControlElementId id, uint[] tlv, uint tlvSize)
 {
     return(SoundNativeMethods.SoundControlElementTLVRead(handle, id.handle, tlv, tlvSize));
 }
Example #4
0
        public string GetSubdeviceName()
        {
            IntPtr ptr = SoundNativeMethods.SoundPcmInfoGetSubdeviceName(handle);

            return(Marshal.PtrToStringAnsi(ptr));
        }
Example #5
0
 public void SetSubdevice(uint subdev)
 {
     SoundNativeMethods.SoundPcmInfoSetSubdevice(handle, subdev);
 }
Example #6
0
 public void SetOffset(uint val)
 {
     SoundNativeMethods.SoundControlElementListSetOffset(handle, val);
 }
Example #7
0
 public uint GetDevice(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementListGetDevice(handle, idx));
 }
 public void SetByte(uint idx, byte val)
 {
     SoundNativeMethods.SoundControlElementValueSetByte(handle, idx, val);
 }
 public int Compare(SoundControlElementValue other)
 {
     return(SoundNativeMethods.SoundControlElementValueCompare(handle, other.handle));
 }
 public void SetInteger64(uint idx, long val)
 {
     SoundNativeMethods.SoundControlElementValueSetInteger64(handle, idx, val);
 }
 public void SetEnumerated(uint idx, uint val)
 {
     SoundNativeMethods.SoundControlElementValueSetEnumerated(handle, idx, val);
 }
 public void SetBoolean(uint idx, bool val)
 {
     SoundNativeMethods.SoundControlElementValueSetBoolean(handle, idx, val);
 }
 public byte GetByte(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementValueGetByte(handle, idx));
 }
 public uint GetEnumerated(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementValueGetEnumerated(handle, idx));
 }
Example #15
0
 public void Clear()
 {
     SoundNativeMethods.SoundControlElementListClear(handle);
 }
 public void SetId(SoundControlElementId elem)
 {
     SoundNativeMethods.SoundControlElementValueSetId(handle, elem.handle);
 }
Example #17
0
 public void Copy(ref SoundControlElementList obj)
 {
     SoundNativeMethods.SoundControlElementListCopy(handle, obj.handle);
 }
Example #18
0
 /// <summary>
 /// Makes an access type missing from a <see cref="SoundPcmFormatMask"/> instance.
 /// </summary>
 /// <param name="val">Access to unset.</param>
 public void Unset(SoundPcmFormat val)
 {
     SoundNativeMethods.SoundPcmFormatMaskSet(handle, val);
 }
Example #19
0
 public SoundControlElementIface GetInterface(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementListGetInterface(handle, idx));
 }
Example #20
0
 /// <summary>
 /// Resets all bits in a <see cref="SoundPcmFormatMask"/> instance.
 /// </summary>
 public void Reset()
 {
     SoundNativeMethods.SoundPcmFormatMaskNone(handle);
 }
Example #21
0
        public int Get(SoundControl ctl)
        {
            int err = SoundNativeMethods.SoundControlPcmInfo(ctl.handle, handle);

            return(err);
        }
Example #22
0
 /// <summary>
 /// Sets all bits in a <see cref="SoundPcmFormatMask"/> instance.
 /// </summary>
 public void SetAll()
 {
     SoundNativeMethods.SoundPcmFormatMaskAny(handle);
 }
Example #23
0
 public void SetDevice(uint val)
 {
     SoundNativeMethods.SoundPcmInfoSetDevice(handle, val);
 }
Example #24
0
 /// <summary>
 /// Tests the presence of an access type in a <see cref="SoundPcmFormatMask"/> instance.
 /// </summary>
 /// <returns>Value indicating </returns>
 public bool IsSet(SoundPcmFormat val)
 {
     return(SoundNativeMethods.SoundPcmFormatMaskTest(handle, val) == 0);
 }
Example #25
0
 public void SetStream(SoundPcmStream stream)
 {
     SoundNativeMethods.SoundPcmInfoSetStream(handle, stream);
 }
Example #26
0
 /// <summary>
 /// Tests, if given <see cref="SoundPcmFormatMask"/> instance is empty.
 /// </summary>
 /// <returns>Value indicating whether no bis are set.</returns>
 public bool IsEmpty()
 {
     return(SoundNativeMethods.SoundPcmFormatMaskEmpty(handle) == 0);
 }
Example #27
0
        public uint GetSubdevice()
        {
            uint subdev = SoundNativeMethods.SoundPcmInfoGetSubdevice(handle);

            return(subdev);
        }
Example #28
0
        public string GetName(uint idx)
        {
            IntPtr ptr = SoundNativeMethods.SoundControlElementListGetName(handle, idx);

            return(Marshal.PtrToStringAnsi(ptr));
        }
Example #29
0
 public int WriteTLVToElement(SoundControlElementId id, uint[] tlv)
 {
     return(SoundNativeMethods.SoundControlElementTLVWrite(handle, id.handle, tlv));
 }
 public bool GetBoolean(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementValueGetBoolean(handle, idx));
 }