Ejemplo n.º 1
0
 /// <summary>
 /// Convert a <see cref="Track"/>'s buffer size from bytes to megabytes.
 /// </summary>
 /// <param name="track">The track instance.</param>
 /// <returns>The track's buffer size in megabytes.</returns>
 public static double BufferSizeInMega(Track track)
 {
     return(Math.Round((double)track.BufferSize / 1048576, 2));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Convert a <see cref="Track"/>'s buffer size from bytes to kilobytes.
 /// </summary>
 /// <param name="track">The track instance.</param>
 /// <returns>The track's buffer size in kilobytes.</returns>
 public static double BufferSizeInKilo(Track track)
 {
     return(Math.Round((double)track.BufferSize / 1024, 2));
 }