示例#1
0
        /// <summary>
        /// Removes all pointers to the Equalizer APO settings,
        /// effectively making sure no settings are applied.
        /// </summary>
        public static void UnsetEqualizer()
        {
            equalizerapo_api eqAPI = Instance;

            if (eqAPI == null)
            {
                eqAPI = new equalizerapo_api();
            }
            eqAPI.PointConfig(NO_FILTERS);
        }
示例#2
0
        /// <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();
        }
示例#3
0
 /// <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;
 }