コード例 #1
0
 /// <summary>
 /// Attempts to move the read/write data pointers to a specific location
 /// specified by the <paramref name="whence"/> and <paramref name="count"/> values
 /// in the <paramref name="sndfile"/> audio file.
 ///
 /// Whence values can be the following:
 ///     0 - SEEK_SET  - The offset is set to the start of the audio data plus offset (multichannel) frames.
 ///     1 - SEEK_CUR  - The offset is set to its current location plus offset (multichannel) frames.
 ///     2 - SEEK_END  - The offset is set to the end of the data plus offset (multichannel) frames.
 ///
 /// If the <paramref name="sndfile"/> audio file was opened in ReadWrite mode, the whence parameter
 /// can be bit-wise OR'd with <see cref="LibsndfileMode"/> SFM_READ or SFM_WRITE values to modify each pointer
 /// separately.
 /// </summary>
 /// <param name="sndfile">Audio file we wish to seek in.</param>
 /// <param name="count">Number of multichannel frames to offset from our <paramref name="whence"/> position.</param>
 /// <param name="whence">The position where our seek offset begins.</param>
 /// <returns>Returns offset in multichannel frames from the beginning of the audio file.</returns>
 public long Seek(IntPtr sndfile, long count, int whence)
 {
     return(LibsndfileApiNative.sf_seek(sndfile, count, whence));
 }