CRI ADX  Last Updated: 2024-07-17 10:48 p
CriAtomExSequencer API

结构体

struct  CriAtomExSequenceEventInfoTag
 Information structure used for sequence callback event 更多...
 

类型定义

typedef enum CriAtomExSequecneEventTypeTag CriAtomExSequecneEventType
 Type of sequence event callback 更多...
 
typedef struct CriAtomExSequenceEventInfoTag CriAtomExSequenceEventInfo
 Information structure used for sequence callback event
 
typedef CriSint32(* CriAtomExSequencerEventCbFunc) (void *obj, const CriAtomExSequenceEventInfo *info)
 Sequence callback 更多...
 

枚举

enum  CriAtomExSequecneEventTypeTag { CRIATOMEX_SEQUENCE_EVENT_TYPE_CALLBACK = 0 , CRIATOMEX_SEQUENCE_EVENT_TYPE_ENUM_SIZE_IS_4BYTES = 0x7FFFFFFF }
 Type of sequence event callback 更多...
 

函数

void criAtomExSequencer_SetEventCallback (CriAtomExSequencerEventCbFunc func, void *obj)
 Register a sequence callback function 更多...
 

详细描述

类型定义说明

◆ CriAtomExSequecneEventType

Type of sequence event callback

Description:
Type of sequence event callback for the AtomEx library.
参见
CriAtomExSequenceEventInfo

◆ CriAtomExSequencerEventCbFunc

typedef CriSint32( * CriAtomExSequencerEventCbFunc) (void *obj, const CriAtomExSequenceEventInfo *info)

Sequence callback

Description:
参数
[in]objUser-specified object
[in]infoSequence event information
返回
Not used A sequence callback function type from the AtomEx library.
Call criAtomExSequencer_SetEventCallback to register the callback function.
The registered callback function will be executed when the sequence is processed in the server function.
Therefore, if you execute an API that does not take into account interrupts to server processing, This can lead to errors or deadlocks.
Generally, you should not use Atom Library APIs within your callback functions.
Note that if the process is blocked in the callback function for a long time, problems -such as the audio breaking up- may occur.
参见
criAtomExSequencer_SetEventCallback

枚举类型说明

◆ CriAtomExSequecneEventTypeTag

Type of sequence event callback

Description:
Type of sequence event callback for the AtomEx library.
参见
CriAtomExSequenceEventInfo
枚举值
CRIATOMEX_SEQUENCE_EVENT_TYPE_CALLBACK 

Sequence callback

Description:
Callback event information embedded in a sequence data.

函数说明

◆ criAtomExSequencer_SetEventCallback()

void criAtomExSequencer_SetEventCallback ( CriAtomExSequencerEventCbFunc  func,
void *  obj 
)

Register a sequence callback function

参数
[in]funcsequence callback function
[in]objuser-specified object
Description:
Registers a callback function that receives the information embedded in a sequence data.
It is called when a callback event is processed in the server process.
注意
Therefore, if an API that does not take into account interrupts to the server process is executed, an error or a deadlock may occur.
Basically, do not use aany Atom library APIs within a callback function.
Note that if processes are blocked in the callback function for a long time, some problems such as a audio breakups may occur.

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

By passing NULL to func, you can unregister the current callback function.
参见
CriAtomExSequencerEventCbFunc