Exemple #1
0
        /// <summary>
        ///     Listens to changes made from the MSS namespace to the name of a parameter and modifies
        ///     the associated VstParameterManager to reflect the change.
        /// </summary>
        /// <param name="paramId">ID of the changed parameter.</param>
        /// <param name="name">New name of the changed parameter.</param>
        private void MssParameters_NameChanged(MssParameterID paramId, string name)
        {
            VstParameterManager paramMgr;

            //Looks up the VstParameterManager associated with the changed parameter
            VstParameterManagerDict.TryGetRightByLeft(paramId, out paramMgr);
            if (paramMgr.ActiveParameter.Info.Name != name)
            {
                paramMgr.ActiveParameter.Info.Name = GetParamNameFromString(name);
            }
        }