public static string GetDescription(this FVecWindowType windowType) { var attribute = windowType.GetAttribute <DescriptionAttribute>(); var description = attribute.Description; return(description); }
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); }
public FVecWindow(FVecWindowType windowType, int size) : base(Create(windowType, size)) { }
public void SetWindowType(FVecWindowType windowType) { ThrowIfDisposed(); ThrowIfNot(NativeMethods.fvec_set_window(this, windowType.GetDescription())); }