Exemplo n.º 1
0
 /// <summary>
 /// Sets the download rate restriction.
 /// </summary>
 /// <param name="isEnabled">if set to <c>true</c> the download rate restriction is enabled.</param>
 public void SetDownloadRateRestriction(bool isEnabled)
 {
     if (isEnabled)
     {
         openUrlConfig |= Un4seen.Bass.BASSFlag.BASS_STREAM_RESTRATE;
     }
     else
     {
         openUrlConfig &= ~Un4seen.Bass.BASSFlag.BASS_STREAM_RESTRATE;
     }
 }
Exemplo n.º 2
0
	    /// <summary>
	    /// Sets the download rate restriction.
	    /// </summary>
	    /// <param name="isEnabled">if set to <c>true</c> the download rate restriction is enabled.</param>
	    public void SetDownloadRateRestriction(bool isEnabled)
	    {
	        if (isEnabled)
	        {
	            openUrlConfig |= Un4seen.Bass.BASSFlag.BASS_STREAM_RESTRATE;
	        }
	        else
	        {
	            openUrlConfig &= ~Un4seen.Bass.BASSFlag.BASS_STREAM_RESTRATE;
	        }
	    }