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:
- Create a clock surrogate for the player you want to synchronize to.
- Get the clock for the player you want to synchronize to.
- 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.