Пример #1
0
 /// <summary>
 /// Translates a time (seconds) position into bytes, based on a channel's format
 /// </summary>
 /// <param name="handle">The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. HSAMPLE handles may also be used</param>
 /// <param name="pos">The position to translate</param>
 /// <returns>If successful, then the translated length is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code</returns>
 public static long BASS_ChannelSeconds2Bytes(int handle, double pos)
 {
     if (Environment.Is64BitProcess)
     {
         return(BassX64.BASS_ChannelSeconds2Bytes(handle, pos));
     }
     else
     {
         return(BassX86.BASS_ChannelSeconds2Bytes(handle, pos));
     }
 }