Exemplo n.º 1
0
 /// <summary>
 /// Sets the playback position of a sample, MOD music, or stream
 /// </summary>
 /// <param name="handle">The channel handle... a HCHANNEL, HSTREAM or HMUSIC</param>
 /// <param name="pos">The position, in units determined by the mode</param>
 /// <param name="mode">How to set the position. One of the following, with optional flags</param>
 /// <returns>If successful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code. </returns>
 public static bool BASS_ChannelSetPosition(int handle, long pos, BASSMode mode)
 {
     if (Environment.Is64BitProcess)
     {
         return(BassX64.BASS_ChannelSetPosition(handle, pos, mode));
     }
     else
     {
         return(BassX86.BASS_ChannelSetPosition(handle, pos, mode));
     }
 }