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

            return(Marshal.PtrToStringAnsi(ptr));
        }
Exemplo n.º 5
0
 public void SetSubdevice(uint subdev)
 {
     SoundNativeMethods.SoundPcmInfoSetSubdevice(handle, subdev);
 }
Exemplo n.º 6
0
 public void SetOffset(uint val)
 {
     SoundNativeMethods.SoundControlElementListSetOffset(handle, val);
 }
Exemplo n.º 7
0
 public uint GetDevice(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementListGetDevice(handle, idx));
 }
Exemplo n.º 8
0
 public void SetByte(uint idx, byte val)
 {
     SoundNativeMethods.SoundControlElementValueSetByte(handle, idx, val);
 }
Exemplo n.º 9
0
 public int Compare(SoundControlElementValue other)
 {
     return(SoundNativeMethods.SoundControlElementValueCompare(handle, other.handle));
 }
Exemplo n.º 10
0
 public void SetInteger64(uint idx, long val)
 {
     SoundNativeMethods.SoundControlElementValueSetInteger64(handle, idx, val);
 }
Exemplo n.º 11
0
 public void SetEnumerated(uint idx, uint val)
 {
     SoundNativeMethods.SoundControlElementValueSetEnumerated(handle, idx, val);
 }
Exemplo n.º 12
0
 public void SetBoolean(uint idx, bool val)
 {
     SoundNativeMethods.SoundControlElementValueSetBoolean(handle, idx, val);
 }
Exemplo n.º 13
0
 public byte GetByte(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementValueGetByte(handle, idx));
 }
Exemplo n.º 14
0
 public uint GetEnumerated(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementValueGetEnumerated(handle, idx));
 }
Exemplo n.º 15
0
 public void Clear()
 {
     SoundNativeMethods.SoundControlElementListClear(handle);
 }
Exemplo n.º 16
0
 public void SetId(SoundControlElementId elem)
 {
     SoundNativeMethods.SoundControlElementValueSetId(handle, elem.handle);
 }
Exemplo n.º 17
0
 public void Copy(ref SoundControlElementList obj)
 {
     SoundNativeMethods.SoundControlElementListCopy(handle, obj.handle);
 }
Exemplo n.º 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);
 }
Exemplo n.º 19
0
 public SoundControlElementIface GetInterface(uint idx)
 {
     return(SoundNativeMethods.SoundControlElementListGetInterface(handle, idx));
 }
Exemplo n.º 20
0
 /// <summary>
 /// Resets all bits in a <see cref="SoundPcmFormatMask"/> instance.
 /// </summary>
 public void Reset()
 {
     SoundNativeMethods.SoundPcmFormatMaskNone(handle);
 }
Exemplo n.º 21
0
        public int Get(SoundControl ctl)
        {
            int err = SoundNativeMethods.SoundControlPcmInfo(ctl.handle, handle);

            return(err);
        }
Exemplo n.º 22
0
 /// <summary>
 /// Sets all bits in a <see cref="SoundPcmFormatMask"/> instance.
 /// </summary>
 public void SetAll()
 {
     SoundNativeMethods.SoundPcmFormatMaskAny(handle);
 }
Exemplo n.º 23
0
 public void SetDevice(uint val)
 {
     SoundNativeMethods.SoundPcmInfoSetDevice(handle, val);
 }
Exemplo n.º 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);
 }
Exemplo n.º 25
0
 public void SetStream(SoundPcmStream stream)
 {
     SoundNativeMethods.SoundPcmInfoSetStream(handle, stream);
 }
Exemplo n.º 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);
 }
Exemplo n.º 27
0
        public uint GetSubdevice()
        {
            uint subdev = SoundNativeMethods.SoundPcmInfoGetSubdevice(handle);

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

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