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;
for(distance = 0.0f; distance <= 1.0f; distance += 0.01f) {
criFwSys_WaitVsync();
}
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)