CRI ADX  Last Updated: 2024-07-17 10:47 p
AISAC Control

Samples Directory

/CRIWARE/SDK/pc/samples/criatomex/control_aisac


Sample Description

Plays back sound while changing the AISAC control value created in CRI Atom Craft.

The following is a code to play back AISAC data.

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)