public int GetSwParams(out SoundPcmSwParams swParams) { IntPtr ptr = IntPtr.Zero; int ret = SoundNativeMethods.SoundPcmSwParamsCurrent(handle, ptr); swParams = new SoundPcmSwParams(ptr); return(ret); }
/// <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); }
public int SetSwParams(SoundPcmSwParams swParams) { return(SoundNativeMethods.SoundPcmSwParams(handle, swParams.handle)); }