CRI ADX  Last Updated: 2025-05-07 13:34 p
Playback a Track Transition by Selector

Sample Directory

/cri/pc/samples/criatomex/playback_track_transition_by_selector

Data used in the sample

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

Sample explanation

In CRI Atom, you can specify a selector/label for the player to transition the music being played.
To reflect the set selector/label in the player being played, you need to execute the criAtomExPlayer_UpdateAll function for the player.


After specifying the selector/label, the actual transition timing is determined according to the beat information set in the playing data.


You can find the list of selectors/labels by referring to the ACF header of the project, but please check with the data creator to find out which selector/label is being used in the cue.
The code to set the selector/label for the player is shown below.
/* Set the selector label */
player,
"Selector",
"Label");
/* Apply setting values */
CriAtomExPlayerObj * CriAtomExPlayerHn
Player handle.
Definition: cri_le_atom_ex.h:3622
void criAtomExPlayer_UpdateAll(CriAtomExPlayerHn player)
Update the playback parameters (for all sounds currently playing)
void criAtomExPlayer_SetSelectorLabel(CriAtomExPlayerHn player, const CriChar8 *selector, const CriChar8 *label)
Set selector information to the player.