CRI ADX  Last Updated: 2025-05-07 13:34 p
AISAC control

Sample directory

/cri/pc/samples/criatomex/control_aisac

Data used in the sample

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

Sample description

Playback is performed while changing the control value of AISAC created with CRI Atom Craft.
CriFloat32 distance;
/* Create a player */
player = criAtomExPlayer_Create(NULL, NULL, 0);
/* Set an AISAC Cue to the player */
criAtomExPlayer_SetCueId(player, acb_hn, CRI_ATOMCUESHEET_MUSICXFADE);
/* Start playback */
/* Play back while controlling AISAC control value */
for(distance = 0.0f; distance <= 1.0f; distance += 0.01f) {
/* Wait for V synchronization */
criFwSys_WaitVsync();
/* Execute the server process */
/* Change the zeroth AISAC control value */
/* Update */
}
void criAtomEx_ExecuteMain(void)
Execute the server processing.
void criAtomExPlayer_SetAisacControlById(CriAtomExPlayerHn player, CriAtomExAisacControlId control_id, CriFloat32 control_value)
Set an AISAC control value (specifying the control ID)
CriAtomExPlaybackId criAtomExPlayer_Start(CriAtomExPlayerHn player)
Start the playback.
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)
CriAtomExPlayerHn criAtomExPlayer_Create(const CriAtomExPlayerConfig *config, void *work, CriSint32 work_size)
Create an AtomEx player.
void criAtomExPlayer_SetCueId(CriAtomExPlayerHn player, CriAtomExAcbHn acb_hn, CriAtomExCueId id)
Set the sound data to play (specifying a Cue ID)