Exemplo n.º 1
0
 /// <summary>
 /// Translates a byte position into time (seconds), 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 a negative value is returned. Use BASS_ErrorGetCode to get the error code</returns>
 public static double BASS_ChannelBytes2Seconds(int handle, long pos)
 {
     if (Environment.Is64BitProcess)
     {
         return(BassX64.BASS_ChannelBytes2Seconds(handle, pos));
     }
     else
     {
         return(BassX86.BASS_ChannelBytes2Seconds(handle, pos));
     }
 }