Ejemplo n.º 1
0
        public int GetSwParams(out SoundPcmSwParams swParams)
        {
            IntPtr ptr = IntPtr.Zero;
            int    ret = SoundNativeMethods.SoundPcmSwParamsCurrent(handle, ptr);

            swParams = new SoundPcmSwParams(ptr);
            return(ret);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a shallow copy of the <see cref="T:ALSASHARP.SoundPcmSwParams"/>.
        /// </summary>
        /// <returns>Shallow copy of this instance.</returns>
        public object Clone()
        {
            var other = new SoundPcmSwParams();

            SoundNativeMethods.SoundPcmSwParamsCopy(other.handle, this.handle);

            return(other);
        }
Ejemplo n.º 3
0
 public int SetSwParams(SoundPcmSwParams swParams)
 {
     return(SoundNativeMethods.SoundPcmSwParams(handle, swParams.handle));
 }