Port reference for Controller.
 /// <summary>
 /// Determines whether the specified <see cref="JackSharp.Ports.PortReference"/> is equal to the current <see cref="JackSharp.Ports.PortReference"/>.
 /// </summary>
 /// <param name="other">The <see cref="JackSharp.Ports.PortReference"/> to compare with the current <see cref="JackSharp.Ports.PortReference"/>.</param>
 /// <returns><c>true</c> if the specified <see cref="JackSharp.Ports.PortReference"/> is equal to the current
 /// <see cref="JackSharp.Ports.PortReference"/>; otherwise, <c>false</c>.</returns>
 public bool Equals(PortReference other)
 {
     if (other == null)
     {
         return(false);
     }
     unsafe {
         return(PortPointer == other.PortPointer);
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JackSharp.Events.PortRenameEventArgs"/> class.
 /// </summary>
 /// <param name="port">Port.</param>
 public PortRenameEventArgs(PortReference port)
 {
     Port = port;
 }
Exemple #3
0
 /// <summary>
 /// Connect the specified outPort and inPort.
 /// </summary>
 /// <param name="outPort">Out port.</param>
 /// <param name="inPort">In port.</param>
 public bool Connect(PortReference outPort, PortReference inPort)
 {
     unsafe {
         return PortApi.Connect (JackClient, outPort.FullName, inPort.FullName) == 0;
     }
 }
Exemple #4
0
 static JackPort AddNewJackPort(PortReference port)
 {
     JackPort newPort = new JackPort (port);
     PortMapper.Add (newPort);
     return newPort;
 }
        /// <summary>
        /// Determines whether the specified <see cref="System.Object"/> is equal to the current <see cref="JackSharp.Ports.PortReference"/>.
        /// </summary>
        /// <param name="obj">The <see cref="System.Object"/> to compare with the current <see cref="JackSharp.Ports.PortReference"/>.</param>
        /// <returns><c>true</c> if the specified <see cref="System.Object"/> is equal to the current
        /// <see cref="JackSharp.Ports.PortReference"/>; otherwise, <c>false</c>.</returns>
        public override bool Equals(object obj)
        {
            PortReference otherPort = obj as PortReference;

            return(Equals(otherPort));
        }
Exemple #6
0
 /// <summary>
 /// Determines whether the specified <see cref="JackSharp.Ports.PortReference"/> is equal to the current <see cref="JackSharp.Ports.PortReference"/>.
 /// </summary>
 /// <param name="other">The <see cref="JackSharp.Ports.PortReference"/> to compare with the current <see cref="JackSharp.Ports.PortReference"/>.</param>
 /// <returns><c>true</c> if the specified <see cref="JackSharp.Ports.PortReference"/> is equal to the current
 /// <see cref="JackSharp.Ports.PortReference"/>; otherwise, <c>false</c>.</returns>
 public bool Equals(PortReference other)
 {
     if (other == null)
         return false;
     unsafe {
         return PortPointer == other.PortPointer;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JackSharp.Events.PortRegistrationEventArgs"/> class.
 /// </summary>
 /// <param name="port">Port.</param>
 /// <param name="changeType">Change type.</param>
 public PortRegistrationEventArgs(PortReference port, ChangeType changeType)
 {
     Port = port;
     ChangeType = changeType;
 }