CRI ADX  Last Updated: 2024-07-17 10:47 p
Pausing Playback

Samples Directory

/CRIWARE/SDK/pc/samples/criatomex/pause_resume


Sample Description

In CRI Atom, you can use the criAtomExPlayer_Pause function to set pause flag regardless of the player status.
Playback pauses when the pause flag is set to CRI_TRUE and resumes when set to CRI_FALSE.

criAtomExPlayer_Pause(player, CRI_TRUE); /* Pause */
criAtomExPlayer_Pause(player, CRI_FALSE); /* Resume */
CriAtomExPlayerObj * CriAtomExPlayerHn
Player handle.
Definition: cri_le_atom_ex.h:3622
void criAtomExPlayer_Pause(CriAtomExPlayerHn player, CriBool sw)
Pause/resume.


Even when paused, loading of data continues for streaming playback.
By using this pausing operation, you can wait until enough data is loaded into the streaming playback and resume it when enough data is loaded to strictly control the playback timing or synchronize starting timing of multiple streaming playbacks.