CRI ADX  Last Updated: 2024-07-17 10:47 p
Playing Back by Specifying a Time to Start Playback (Seek Playback)

Samples Directory

/CRIWARE/SDK/pc/samples/criatomex/seek_playback


Sample Description

Using the criAtomExPlayer_SetStartTime function, you can specify the starting time of playback (seek position) for a player.
Playback starting time is specified in milliseconds.

When playback starting time is set, sounds played with that player is started at the specified time from then on.

criAtomExPlayer_SetStartTime(player, 10000); /* Set ten seconds as the position to start playback */
criAtomExPlayer_Start(player); /* Start playback */
void criAtomExPlayer_SetStartTime(CriAtomExPlayerHn player, CriSint64 start_time_ms)
Specify the playback starting position.
CriAtomExPlaybackId criAtomExPlayer_Start(CriAtomExPlayerHn player)
Start the playback.
CriAtomExPlayerObj * CriAtomExPlayerHn
Player handle.
Definition: cri_le_atom_ex.h:3622