FindSource
Previous  Top  Next


   SHORT error = FindSource (
            [in] SHORT destType,
            [in] SHORT destTargetType,
            [in] SHORT sourceType,
            [in] SHORT sourceTargetType
            )
Description

This method finds a source of a particular type in the currently selected mixer, setting the DestNumber and SourceNumber properties to appropriate values. If the source is not found, these properties remain unchanged.

Parameters

destTypeis the Destination Type to find. Use the special value MSSMIX_DEST_CURRENT to use the destination currently set in DestNumber. Use the value MSSMIX_DEST_IGNORE to select the destination from the specified destination target type only (see below). The generic types MSSMIX_DEST_GENERIC_* may not be used.  
 
destTargetTypeis the Destination Target Type to find. This is only used if destType is set to MSSMIX_DEST_IGNORE or if the destination type specified by destType is not found.  
 
sourceTypeis the Source Type to find. Use the value MSSMIX_SOURCE_IGNORE to select the source from the specified source target type only (see below).  
 
sourceTargetTypeis the Source Target Type to find. This is only used if sourceType is set to MSSMIX_SOURCE_IGNORE or if the source type specified by sourceType is not found.  


Return value

The return value is MSSMERR_NOERROR (0) if the source was found, otherwise the value returned indicates an error.