estrutura ACX_STREAMAUDIOENGINE_CALLBACKS (acxelements.h)
A estrutura ACX_STREAMAUDIOENGINE_CALLBACKS identifica os retornos de chamada do driver para operações do mecanismo de áudio de fluxo ACX.
Sintaxe
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;
Membros
Size
O comprimento, em bytes, dessa estrutura.
EvtAcxStreamAudioEngineAssignEffectsState
O retorno de chamada EVT_ACX_STREAMAUDIOENGINE_ASSIGN_EFFECTS_STATE .
EvtAcxStreamAudioEngineRetrieveEffectsState
O retorno de chamada EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_EFFECTS_STATE .
EvtAcxStreamAudioEngineRetrievePresentationPosition
O retorno de chamada EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_PRESENTATION_POSITION .
EvtAcxStreamAudioEngineAssignCurrentWritePosition
O retorno de chamada EVT_ACX_STREAMAUDIOENGINE_ASSIGN_CURRENT_WRITE_POSITION.
EvtAcxStreamAudioEngineRetrieveLinearBufferPosition
O retorno de chamada EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_LINEAR_BUFFER_POSITION .
EvtAcxStreamAudioEngineAssignLastBufferPosition
O retorno de chamada EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LAST_BUFFER_POSITION.
EvtAcxStreamAudioEngineAssignLoopbackProtection
O retorno de chamada EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LOOPBACK_PROTECTION.
EvtAcxStreamAudioEngineProcessRequest
O retorno de chamada EVT_ACX_OBJECT_PROCESS_REQUEST .
Comentários
Exemplo
O uso de exemplo é mostrado abaixo.
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;
Requisitos do ACX
Versão mínima do ACX: 1.0
Para obter mais informações sobre as versões do ACX, consulte Visão geral da versão do ACX.
Requisitos
Requisito | Valor |
---|---|
Cabeçalho | acxelements.h |