Exemple #1
0
        public int GetInfo(out SoundPcmInfo info)
        {
            IntPtr ptr = IntPtr.Zero;
            int    ret = SoundNativeMethods.SoundPcmInfo(handle, ptr);

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

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

            return(other);
        }