CRI ADX  Last Updated: 2025-05-07 13:34 p
Pausing Playback

Sample directory

/cri/pc/samples/criatomex/pause_resume

Data used in the sample

/cri/common/smpdata/criatomex/
  • SampleProject.acf
  • AtomCueSheet.acb
  • AtomCueSheet.awb

Sample description

In CRI Atom, you can set the pause flag using the criAtomExPlayer_Pause function regardless of the player's state.
Setting the pause flag to CRI_TRUE will pause the sound, and setting it to CRI_FALSE will resume the sound.
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.