예제 #1
0
        private static IntPtr Create(FVecWindowType windowType, int size)
        {
            if (size <= 0)
            {
                throw new ArgumentOutOfRangeException(nameof(size));
            }

            var handle = NativeMethods.new_aubio_window(windowType.GetDescription(), size.ToUInt32());

            return(handle);
        }
예제 #2
0
 public void SetWindowType(FVecWindowType windowType)
 {
     ThrowIfDisposed();
     ThrowIfNot(NativeMethods.fvec_set_window(this, windowType.GetDescription()));
 }