CRI ADX  Last Updated: 2024-07-17 10:47 p
How to Play Back a File


An ADX or HCA file that is not packed can be played back.
In that case, specify its file name instead of its Cue ID.
This can be done 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 a File Name .'

When a file not packed is played back, file open processing is performed every time when playback starts.
File open processing often takes time and causes degradation of the entire performance.
Thus, we recommend you to pack the file to avoid file open processing.
For details, see 'How to Play Back Packed Data .'

Return:Tips