/// <summary> /// Initialize the equalizer and Zune objects, /// opening/connecting to the Zune player and /// connecting the equalizer. /// </summary> private void InitEqAndZune() { // create objects zuneAPI = new ZuneAPI(); eqAPI = new equalizerapo_api(); // zune events zuneAPI.TrackChanged += new EventHandler(TrackChanged); zuneAPI.PlaybackChanged += new EventHandler(PlaybackChanged); // equalizer events eqAPI.EqualizerChanged += new EventHandler(EqualizerChanged); // init objects zuneAPI.Init(); }
/// <summary> /// Create a new instance of the MessageParser object with the /// given references. /// </summary> /// <param name="eq">Reference to the <see cref="eqAPI"/> object.</param> /// <param name="zune">Reference to the <see cref="zuneAPI"/> object.</param> public MessageParser(equalizerapo_api eq, ZuneAPI zune) { eqAPI = eq; zuneAPI = zune; }