SpiDisableSync - Example Code

The following code illustrates how to remove a grouping of streams.

#include        "os2.h"
#include        "os2me.h"

  ULONG         ulRC;                       /* Error return code */
  HSTREAM       hStream1;                   /* Stream 1 handle   */
                            .
                            .
                            .
/*--------------------------------------------------------------------*/
/* Create digital audio stream (hStream1).  Create a second digital   */
/* audio stream (hStream2). Set up the sync group between the two     */
/* streams (See SpiCreateStream, SpiAssociate, and SpiStartStream.)   */
/*--------------------------------------------------------------------*/
                            .
                            .
/*--------------------------------------------------------------------*/
/* Do other processing.                                               */
/*--------------------------------------------------------------------*/
                            .
                            .
/*--------------------------------------------------------------------*/
/* Now disable synchronization between the two streams.               */
/*--------------------------------------------------------------------*/
  if (ulRC = SpiDisableSync (hStream1))
     return (ulRC);    /* error! */


[Back: SpiDisableSync - Related Messages]
[Next: SpiDisableSync - Topics]