CRI ADX  Last Updated: 2025-05-07 13:34 p
How to Play Back a File


You can play unpacked ADX and HCA files. In that case, specify the file name instead of the cue ID.
Specifically, as follows:

/* Create a player */
player = criAtomExPlayer_Create(&player_config, NULL, 0);
/* Specify a file to play back */
criAtomExPlayer_SetFile(player, NULL, "music.adx");
/* Start playback */
void criAtomExPlayer_SetFile(CriAtomExPlayerHn player, CriFsBinderHn binder, const CriChar8 *path)
Set the sound data to play (specifying a file name)
CriAtomExPlaybackId criAtomExPlayer_Start(CriAtomExPlayerHn player)
Start the playback.
CriAtomExPlayerHn criAtomExPlayer_Create(const CriAtomExPlayerConfig *config, void *work, CriSint32 work_size)
Create an AtomEx player.


For details, see the sample program in ' Playback by specifying file name .'
When playing an unpacked file, the file will be opened each time playback starts.
File opening often takes a long time and can cause slowdowns, so we recommend packing the file to prevent it from being opened.
Please refer to " \ref criatom_tips_003 ".

Return:Tips