Example #1
0
    /// <summary>
    /// Initializes a new instance.
    /// </summary>
    private void Initialize()
    {
      _info = Bass.BASS_ChannelGetInfo(_handle);
      Log.Debug("Stream type: {0}", _info.ctype);

      if (_info.ctype != BASSChannelType.BASS_CTYPE_STREAM &&
          _info.ctype != BASSChannelType.BASS_CTYPE_STREAM_MIXER)
      {
        Log.Info("Stream info: {0}", _info.ToString());

        UpdateLocalFields();
        _streamContentType = GetStreamContentType();

        Log.Info("Stream content: {0}", _streamContentType);
      }
    }