예제 #1
0
        public static string GetDescription(this FVecWindowType windowType)
        {
            var attribute   = windowType.GetAttribute <DescriptionAttribute>();
            var description = attribute.Description;

            return(description);
        }
예제 #2
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);
        }
예제 #3
0
 public FVecWindow(FVecWindowType windowType, int size)
     : base(Create(windowType, size))
 {
 }
예제 #4
0
 public void SetWindowType(FVecWindowType windowType)
 {
     ThrowIfDisposed();
     ThrowIfNot(NativeMethods.fvec_set_window(this, windowType.GetDescription()));
 }