Synchronizing audio and other time media

You can synchronize multiple audio players, or you can synchronize audio players with other time media. Like all media players, audio players have internal clocks. By default, they are synchronized to the system clock.

To synchronize one audio player to another:

  1. Create a clock surrogate for the player you want to synchronize to.

  2. Get the clock for the player you want to synchronize to.
  3. Call SyncTo on the player you want to synchronize to the other player.
      // Synchronizing audioPlayer1to audioPlayer2
      TSyncableClockSurrogate player2Clock;
      audioPlayer2.GetClock(player2Clock);
      audioPlayer1.SyncTo(player2Clock);
NOTE You can synchronize any two media players this way.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker