Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new instance of a hardware interface from a name
        /// returned from the Available dictionary.
        /// </summary>
        public static MidiHardwareInterface CreateInstance(string name, MappedMidiDevice mapping)
        {
            MidiHardwareInterface mhi = null;

            if (_availableInstances.TryGetValue(name, out mhi))
            {
                return(CreateInstance(mhi.GetType(), mapping));
            }
            return(null);
        }