/* Network-Integrated Multimedia Middleware (NMM)
 * http://www.motama.com/nmm.html
 *
 * Copyright (C) 2006-2007
 * Motama GmbH, Saarbruecken, Germany
 * http://www.motama.com
 *
 * This file is part of NMM. 
 * 
 * NMM is free software; you can redistribute it and/or modify it    
 * under the terms of the GNU General Public License as published by 
 * the Free Software Foundation; only version 2 of the License.      
 * 
 * NMM is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 
 * License for more details.  
 * 
 * You should have received a copy of the GNU General Public License 
 * along with NMM; if not, write to the Free Software Foundation,    
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 */

module NMM {

  /** Interface for output switching of a node.
   * This interface is used for switching the outputs of a node. It defines instream events used during
   * output switching and provides methods for enabling and disabling the usage of these events when
   * output jacks are connected.
   *
   * @deprecated Output switching is deprecated
   */
  interface ISwitch
  {
    /** Perform switch operation.
     * This instream event is sent when outputs are switched. Plug-ins that receive this event and
     * implement this interface may perform whatever operation is required when switching outputs.
     *
     * @deprecated Output switching is deprecated
     */
    void switchOutputs();

    /** Flush internal output queue.
     * This method flushes the internal output queue which is used for output switching.
     *
     * @param ts Flush timestamp
     *
     * @deprecated Output switching is deprecated
     */
    void flushOutputs(in Timestamp ts);

    /** Enable or disable output switching.
     * This method enables or disables special handling for output switching.
     * If enabled, the node sends a switchOutputs event whenever a new output jack is connected.
     *
     * @param enable @c true to enable, @c false to disable output switching
     *
     * @deprecated Output switching is deprecated
     */
    void setSwitchOutputsEnabled(in nmm_bool enable);

    /** Check if output switching is enabled.
     *
     * @return @c true if output switching is enabled, @c false if it is disabled
     *
     * @deprecated Output switching is deprecated
     */
    nmm_bool getSwitchOutputsEnabled();

  };
}
