CRI ADX  Last Updated: 2024-07-17 10:47 p
CriAtomExMonitor API

Data Structures

struct  CriAtomExMonitorConfigTag
 Configuration structure used to initialize the Monitor library. More...
 
struct  CriAtomExMonitorDataUpdateNotificationInfoTag
 Date Update Info. More...
 

Macros

#define CRIATOMX_MONITOR_DEFAULT_NUM_PUREVIEW_OBJECTS   (200)
 Default number of preview objects. More...
 
#define CRIATOMX_MONITOR_DEFAULT_COMMUNICATION_BUFFER_SIZE   (2*1024*1024)
 Default communication buffer size. More...
 
#define CRIATOMX_MONITOR_DEFAULT_PLAYBACK_POSITION_UPDATE_INTERVAL   (8)
 Default playback position update interval. More...
 
#define CRIATOMEX_MONITOR_LOG_MODE_OFF   (0)
 Different types of logs. More...
 
#define criAtomExMonitor_SetDefaultConfig(p_config)
 Assign the default values to the configuration structure of the Monitor library. More...
 

Typedefs

typedef struct CriAtomExMonitorConfigTag CriAtomExMonitorConfig
 Configuration structure used to initialize the Monitor library. More...
 
typedef enum CriAtomExMonitorDataUpdateTargetTag CriAtomExMonitorDataUpdateTarget
 Date Update Type. More...
 
typedef enum CriAtomExMonitorDataUpdateEventTag CriAtomExMonitorDataUpdateEvent
 Date Update Status. More...
 
typedef struct CriAtomExMonitorDataUpdateNotificationInfoTag CriAtomExMonitorDataUpdateNotificationInfo
 Date Update Info. More...
 

Enumerations

enum  CriAtomExMonitorDataUpdateTargetTag { CRIATOMEXMONITOR_DATA_UPDATE_TARGET_ACF = 0 , CRIATOMEXMONITOR_DATA_UPDATE_TARGET_ACB = 1 , CRIATOMEXMONITOR_DATA_UPDATE_TARGET_ENUM_SIZE_IS_4BYTES = 0x7FFFFFFF }
 Date Update Type. More...
 
enum  CriAtomExMonitorDataUpdateEventTag { CRIATOMEXMONITOR_DATA_UPDATE_EVENT_BEGIN = 0 , CRIATOMEXMONITOR_DATA_UPDATE_EVENT_END = 1 , CRIATOMEXMONITOR_DATA_UPDATE_EVENT_ENUM_SIZE_IS_4BYTES = 0x7FFFFFFF }
 Date Update Status. More...
 

Functions

CriSint32 criAtomExMonitor_CalculateWorkSize (const CriAtomExMonitorConfig *config)
 Calculate the size of the work buffer required to initialize the monitoring feature. More...
 
void criAtomExMonitor_Initialize (const CriAtomExMonitorConfig *config, void *work, CriSint32 work_size)
 Initialize the monitoring feature. More...
 
void criAtomExMonitor_Finalize (void)
 Finalize the monitoring feature. More...
 
const CriChar8 * criAtomExMonitor_GetServerIpString (void)
 Get the server IP address string. More...
 
const CriChar8 * criAtomExMonitor_GetClientIpString (void)
 Get the client IP address string. More...
 
CriBool criAtomExMonitor_IsConnected (void)
 Get the tool connection status. More...
 
void criAtomExMonitor_SetLogCallback (CriAtomExMonitorLogCbFunc cbf, void *obj)
 Register the log retrieval callback function. More...
 
void criAtomExMonitor_SetLogMode (CriUint32 mode)
 Specify log mode. More...
 
void criAtomExMonitor_OutputUserLog (const CriChar8 *message)
 User log output. More...
 
void criAtomExMonitor_SetDataUpdateNotificationCallback (CriAtomExMonitorDataUpdateNotificationCbFunc func, void *obj)
 Set data update notification callback function. More...
 

Detailed Description

Macro Definition Documentation

◆ CRIATOMX_MONITOR_DEFAULT_NUM_PUREVIEW_OBJECTS

#define CRIATOMX_MONITOR_DEFAULT_NUM_PUREVIEW_OBJECTS   (200)

Default number of preview objects.

Description:
Default number of preview objects.
See also
criAtomExMonitor_SetDefaultConfig

◆ CRIATOMX_MONITOR_DEFAULT_COMMUNICATION_BUFFER_SIZE

#define CRIATOMX_MONITOR_DEFAULT_COMMUNICATION_BUFFER_SIZE   (2*1024*1024)

Default communication buffer size.

Description:
Default communication buffer size.
See also
criAtomExMonitor_SetDefaultConfig

◆ CRIATOMX_MONITOR_DEFAULT_PLAYBACK_POSITION_UPDATE_INTERVAL

#define CRIATOMX_MONITOR_DEFAULT_PLAYBACK_POSITION_UPDATE_INTERVAL   (8)

Default playback position update interval.

Description:
Default playback position update interval.
See also
criAtomExMonitor_SetDefaultConfig

◆ CRIATOMEX_MONITOR_LOG_MODE_OFF

#define CRIATOMEX_MONITOR_LOG_MODE_OFF   (0)

Different types of logs.

Description:
Different types of logs available.
See also
criAtomExMonitor_SetLogMode

◆ criAtomExMonitor_SetDefaultConfig

#define criAtomExMonitor_SetDefaultConfig (   p_config)
Value:
{\
(p_config)->max_preivew_object = CRIATOMX_MONITOR_DEFAULT_NUM_PUREVIEW_OBJECTS;\
(p_config)->communication_buffer_size = CRIATOMX_MONITOR_DEFAULT_COMMUNICATION_BUFFER_SIZE;\
(p_config)->additional_buffer = 0;\
(p_config)->additional_buffer_size = 0;\
(p_config)->playback_position_update_interval = CRIATOMX_MONITOR_DEFAULT_PLAYBACK_POSITION_UPDATE_INTERVAL;\
}
#define CRIATOMX_MONITOR_DEFAULT_PLAYBACK_POSITION_UPDATE_INTERVAL
Default playback position update interval.
Definition: cri_le_atom_ex_monitor.h:65
#define CRIATOMX_MONITOR_DEFAULT_COMMUNICATION_BUFFER_SIZE
Default communication buffer size.
Definition: cri_le_atom_ex_monitor.h:56
#define CRIATOMX_MONITOR_DEFAULT_NUM_PUREVIEW_OBJECTS
Default number of preview objects.
Definition: cri_le_atom_ex_monitor.h:47

Assign the default values to the configuration structure of the Monitor library.

Description:
Assign the default values to the configuration structure of the Monitor library.
See also
CriAtomExMonitorConfig

Typedef Documentation

◆ CriAtomExMonitorConfig

Configuration structure used to initialize the Monitor library.

Description:
This structure is used to specify the behavior of the Monitor library.
It is passed as an argument to the criAtomExMonitor_Initialize function.
See also
criAtomExMonitor_Initialize, criAtomExMonitor_SetDefaultConfig

◆ CriAtomExMonitorDataUpdateTarget

Date Update Type.

Description:
It is the target of data update by CRI Atom Craft (authoring tool) at in-game preview.
See also
CriAtomExMonitorDataUpdateNotificationInfo

◆ CriAtomExMonitorDataUpdateEvent

Date Update Status.

Description:
It is the state of data update by CRI Atom Craft (authoring tool) at in-game preview.
See also
CriAtomExMonitorDataUpdateNotificationInfo

◆ CriAtomExMonitorDataUpdateNotificationInfo

Date Update Info.

Description:
It is the infomation of data update by CRI Atom Craft (authoring tool) at in-game preview.
See also
criAtomExMonitor_SetDataUpdateNotificationCallback

Enumeration Type Documentation

◆ CriAtomExMonitorDataUpdateTargetTag

Date Update Type.

Description:
It is the target of data update by CRI Atom Craft (authoring tool) at in-game preview.
See also
CriAtomExMonitorDataUpdateNotificationInfo
Enumerator
CRIATOMEXMONITOR_DATA_UPDATE_TARGET_ACF 

ACF Update

CRIATOMEXMONITOR_DATA_UPDATE_TARGET_ACB 

ACB Update

◆ CriAtomExMonitorDataUpdateEventTag

Date Update Status.

Description:
It is the state of data update by CRI Atom Craft (authoring tool) at in-game preview.
See also
CriAtomExMonitorDataUpdateNotificationInfo
Enumerator
CRIATOMEXMONITOR_DATA_UPDATE_EVENT_BEGIN 

Start Event

CRIATOMEXMONITOR_DATA_UPDATE_EVENT_END 

End Event

Function Documentation

◆ criAtomExMonitor_CalculateWorkSize()

CriSint32 criAtomExMonitor_CalculateWorkSize ( const CriAtomExMonitorConfig config)

Calculate the size of the work buffer required to initialize the monitoring feature.

Parameters
[in]configconfiguration structure for initialization
Returns
CriSint32 work buffer size
Description:
This function retrieves the size of the work buffer needed to use the monitoring feature.

If the calculation of the size of the work buffer fails, this function returns -1.
The reason why the calculation failed can be determined by checking the error callback message.
Remarks:
The work buffer size needed by the monitoring feature depends on the values of the parameters in the CriAtomExMonitorConfig structure.

If you specify NULL for the argument, the default settings (i.e., the same parameters than when criAtomExMonitor_SetDefaultConfig is used) are used for calculating the size of the work buffer.
The information passed in the config argument is only referenced within the function.
Therefore the memory it uses can be released after executing the function.
See also
criAtomExMonitor_SetDefaultConfig, criAtomExMonitor_Initialize, CriAtomExMonitorConfig

◆ criAtomExMonitor_Initialize()

void criAtomExMonitor_Initialize ( const CriAtomExMonitorConfig config,
void *  work,
CriSint32  work_size 
)

Initialize the monitoring feature.

Parameters
[in]configconfiguration structure for initialization
[in]workwork buffer
[in]work_sizework buffer size
Description:
This function initializes the monitoring feature.
Before using the monitoring feature, always execute this function.
(Once this function is executed, the monitoring feature will be available until the criAtomExMonitor_Finalize function is called.)
This function should be called after the criAtomEx_Initialize function and before the criAtomEx_Finalize function.
See also
criAtomExMonitor_Finalize, CriAtomExMonitorConfig

◆ criAtomExMonitor_Finalize()

void criAtomExMonitor_Finalize ( void  )

Finalize the monitoring feature.

Description:
This function finalizes the monitoring feature.
Attention
This function cannot be called before executing the criAtomExMonitor_Initialize function.
See also
criAtomExMonitor_Initialize

◆ criAtomExMonitor_GetServerIpString()

const CriChar8* criAtomExMonitor_GetServerIpString ( void  )

Get the server IP address string.

Description:
Get the server IP address string.
Attention
This function cannot be called before executing the criAtomExMonitor_Initialize function.
See also
criAtomExMonitor_Initialize, criAtomExMonitor_GetClientIpString

◆ criAtomExMonitor_GetClientIpString()

const CriChar8* criAtomExMonitor_GetClientIpString ( void  )

Get the client IP address string.

Description:
Get the client IP address string.
Attention
This function cannot be called before executing the criAtomExMonitor_Initialize function.
See also
criAtomExMonitor_Initialize, criAtomExMonitor_GetServerIpString

◆ criAtomExMonitor_IsConnected()

CriBool criAtomExMonitor_IsConnected ( void  )

Get the tool connection status.

Returns
CriBool connection status (CRI_TRUE: connected, CRI_FALSE: not connected)
Description:
Determines if the tool is connected or not.
Attention
This function cannot be called before executing the criAtomExMonitor_Initialize function.
See also
criAtomExMonitor_Initialize

◆ criAtomExMonitor_SetLogCallback()

void criAtomExMonitor_SetLogCallback ( CriAtomExMonitorLogCbFunc  cbf,
void *  obj 
)

Register the log retrieval callback function.

Parameters
cbfcallback function
objuser specified object
Description:
Registers a callback function for getting log.
The log retrieval process is started by registering a callback function and stopped by setting it to NULL.
To change the log mode, call the criAtomExMonitor_SetLogMode function.
Attention
This function cannot be called before executing the criAtomExMonitor_Initialize function.
See also
criAtomExMonitor_Initialize, criAtomExMonitor_SetLogMode

◆ criAtomExMonitor_SetLogMode()

void criAtomExMonitor_SetLogMode ( CriUint32  mode)

Specify log mode.

Parameters
modeLog output mode
Description:
Specify the log retrieval mode.
The log retrieval callback function (registered by the criAtomExMonitor_SetLogCallback function) will be called depending on the mode specified by this function.
See also
criAtomExMonitor_SetLogCallback

◆ criAtomExMonitor_OutputUserLog()

void criAtomExMonitor_OutputUserLog ( const CriChar8 *  message)

User log output.

Parameters
messageUser log message
Description:
Outputs the user log.
The log output can be obtained and displayed by using a log acquisition callback or profiler.
See also
criAtomExMonitor_SetLogCallback

◆ criAtomExMonitor_SetDataUpdateNotificationCallback()

void criAtomExMonitor_SetDataUpdateNotificationCallback ( CriAtomExMonitorDataUpdateNotificationCbFunc  func,
void *  obj 
)

Set data update notification callback function.

Parameters
[in]funcData update notification callback function
[in]objuser specified object
Description:
Register a callback function to be called when data update processing from the authoring tool occurs during in-game preview.
Attention
Please do not use the Atom API within the callback function.
The callback function is also executed from server processing in the AtomMonitor library.
Therefore, if you execute an API that does not consider interrupts to server processing, errors may occur or deadlock may occur.

If you block long processing within the callback function, problems such as out of sound will occur, so please be careful.

Only one callback function can be registered.
If you perform a registration operation more than once, the already registered callback function will be overwritten by the callback function registered later.

Registering registered functions can be canceled by specifying NULL for func.
This function can not be executed before the criAtomExMonitor_Initialize function is executed.
See also
CriAtomExMonitorDataUpdateNotificationCbFunc, CriAtomExMonitorDataUpdateNotificationInfo