Exemplo n.º 1
0
        public static string GetDescription(this FVecWindowType windowType)
        {
            var attribute   = windowType.GetAttribute <DescriptionAttribute>();
            var description = attribute.Description;

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