CRI ADX  Last Updated: 2024-07-17 10:47 p
Playback a Track Transition by Selector

Sample Directory

/CRIWARE/SDK/pc/samples/criatomex/playback_track_transition_by_selector


Sample Description

On CRI Atom, you can transition between playing tracks by specifying a selector label to the player.
To apply the set the selector label to the player currently playing, you must execute the criAtomExPlayer_UpdateAll function on the player.


After specifying the selector label, the actual transition timing will be determined based on the beat information set for the currently playing data.


You can reference the project's ACF header to obtain a list of selectors and labels, but the only way to find out which selectors and labels are used in the Cue is to ask the person who created the data.


The following code demonstrates how to set a selector label to the player.


/* 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.