/// <summary> /// Attempts to open an audio file at the <paramref name="path"/> location /// with <paramref name="mode"/> based file access. /// </summary> /// <param name="path">Fully qualified path to location of audio file.</param> /// <param name="mode">File access to use when opening this file. ReadItems/Write/ReadWrite.</param> /// <param name="info"><see cref="LibsndfileInfo"/> structure contains information about the file we are opening.</param> /// <returns>Returns pointer to an internal object used by libsndfile that we can interact with.</returns> public IntPtr Open(string path, LibsndfileMode mode, ref LibsndfileInfo info) { return(LibsndfileApiNative.sf_open(path, mode, ref info)); }