ACX_STREAMAUDIOENGINE_CALLBACKS 结构 (acxelements.h)
ACX_STREAMAUDIOENGINE_CALLBACKS 结构标识 ACX 流音频引擎操作的驱动程序回调。
语法
typedef struct _ACX_STREAMAUDIOENGINE_CALLBACKS {
ULONG Size;
PFN_ACX_STREAMAUDIOENGINE_ASSIGN_EFFECTS_STATE EvtAcxStreamAudioEngineAssignEffectsState;
PFN_ACX_STREAMAUDIOENGINE_RETRIEVE_EFFECTS_STATE EvtAcxStreamAudioEngineRetrieveEffectsState;
PFN_ACX_STREAMAUDIOENGINE_RETRIEVE_PRESENTATION_POSITION EvtAcxStreamAudioEngineRetrievePresentationPosition;
PFN_ACX_STREAMAUDIOENGINE_ASSIGN_CURRENT_WRITE_POSITION EvtAcxStreamAudioEngineAssignCurrentWritePosition;
PFN_ACX_STREAMAUDIOENGINE_RETRIEVE_LINEAR_BUFFER_POSITION EvtAcxStreamAudioEngineRetrieveLinearBufferPosition;
PFN_ACX_STREAMAUDIOENGINE_ASSIGN_LAST_BUFFER_POSITION EvtAcxStreamAudioEngineAssignLastBufferPosition;
PFN_ACX_STREAMAUDIOENGINE_ASSIGN_LOOPBACK_PROTECTION EvtAcxStreamAudioEngineAssignLoopbackProtection;
PFN_ACX_OBJECT_PROCESS_REQUEST EvtAcxStreamAudioEngineProcessRequest;
} ACX_STREAMAUDIOENGINE_CALLBACKS, *PACX_STREAMAUDIOENGINE_CALLBACKS;
成员
Size
此结构的长度(以字节为单位)。
EvtAcxStreamAudioEngineAssignEffectsState
EVT_ACX_STREAMAUDIOENGINE_ASSIGN_EFFECTS_STATE回调。
EvtAcxStreamAudioEngineRetrieveEffectsState
EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_EFFECTS_STATE回调。
EvtAcxStreamAudioEngineRetrievePresentationPosition
EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_PRESENTATION_POSITION回调。
EvtAcxStreamAudioEngineAssignCurrentWritePosition
EVT_ACX_STREAMAUDIOENGINE_ASSIGN_CURRENT_WRITE_POSITION回调。
EvtAcxStreamAudioEngineRetrieveLinearBufferPosition
EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_LINEAR_BUFFER_POSITION回调。
EvtAcxStreamAudioEngineAssignLastBufferPosition
EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LAST_BUFFER_POSITION回调。
EvtAcxStreamAudioEngineAssignLoopbackProtection
EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LOOPBACK_PROTECTION回调。
EvtAcxStreamAudioEngineProcessRequest
EVT_ACX_OBJECT_PROCESS_REQUEST回调。
备注
示例
示例用法如下所示。
ACX_STREAMAUDIOENGINE_CALLBACKS streamAudioEngineCallbacks;
// Create the AudioEngine element to control offloaded streaming.
ACX_STREAMAUDIOENGINE_CALLBACKS_INIT(&streamAudioEngineCallbacks);
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineAssignEffectsState = CodecR_EvtAcxStreamAudioEngineAssignEffectsState;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineRetrieveEffectsState = CodecR_EvtAcxStreamAudioEngineRetrieveEffectsState;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineRetrievePresentationPosition = CodecR_EvtAcxStreamAudioEngineRetrievePresentationPosition;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineAssignCurrentWritePosition = CodecR_EvtAcxStreamAudioEngineAssignCurrentWritePosition;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineRetrieveLinearBufferPosition = CodecR_EvtAcxStreamAudioEngineRetrieveLinearBufferPosition;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineAssignLastBufferPosition = CodecR_EvtAcxStreamAudioEngineAssignLastBufferPosition;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineAssignLoopbackProtection = CodecR_EvtAcxStreamAudioEngineAssignLoopbackProtection;
ACX 要求
最低 ACX 版本: 1.0
有关 ACX 版本的详细信息,请参阅 ACX 版本概述。
要求
要求 | 值 |
---|---|
Header | acxelements.h |